[Bug] Pledge moves in summary do not break the game (#5461)

This commit is contained in:
Wlowscha 2025-03-02 02:46:38 +01:00 committed by GitHub
parent b50d2c0783
commit 882b965da1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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