mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- 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:
@@ -160,7 +160,10 @@ public class TriggerChangesZone extends Trigger {
|
|||||||
return false;
|
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) {
|
if (!expr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user