Adding some ?s so the game does not crash

This commit is contained in:
Wlowscha 2025-03-01 22:57:26 +01:00
parent 89e8085c39
commit ed0030769f
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -5236,7 +5236,7 @@ export class CombinedPledgeTypeAttr extends VariableMoveTypeAttr {
return false;
}
const combinedPledgeMove = user.turnData.combiningPledge;
const combinedPledgeMove = user?.turnData?.combiningPledge;
if (!combinedPledgeMove) {
return false;
}