- Fixed an issue which caused DamageReceivedCondition not to work and always return 0 (looks like it needs an internal LKI check).

This commit is contained in:
Agetian
2018-12-13 15:55:42 +03:00
parent f09ec13428
commit ee960c9c08

View File

@@ -160,7 +160,10 @@ public class TriggerChangesZone extends Trigger {
return false;
}
final boolean expr = Expressions.compare(card.getTotalDamageRecievedThisTurn(), cond, rightSide);
// need to check the ChangeZone LKI copy for damage, otherwise it'll return 0 for a new object in the new zone
Card lkiCard = card.getGame().getChangeZoneLKIInfo(card);
final boolean expr = Expressions.compare(lkiCard.getTotalDamageRecievedThisTurn(), cond, rightSide);
if (!expr) {
return false;
}