diff --git a/Mage/src/main/java/mage/abilities/condition/common/SourceHasRemainedInSameZoneCondition.java b/Mage/src/main/java/mage/abilities/condition/common/SourceHasRemainedInSameZoneCondition.java index 53629a71d0..3b77c2b649 100644 --- a/Mage/src/main/java/mage/abilities/condition/common/SourceHasRemainedInSameZoneCondition.java +++ b/Mage/src/main/java/mage/abilities/condition/common/SourceHasRemainedInSameZoneCondition.java @@ -48,6 +48,14 @@ public class SourceHasRemainedInSameZoneCondition implements Condition { this.idToCheck = idToCheck; this.timesChangedZones = -1; } + + public SourceHasRemainedInSameZoneCondition(UUID idToCheck, Game game) { + this.idToCheck = idToCheck; + this.timesChangedZones = -1; + if (this.idToCheck != null && game != null && game.getCard(this.idToCheck) != null) { + this.timesChangedZones = game.getState().getZoneChangeCounter(this.idToCheck); + } + } public SourceHasRemainedInSameZoneCondition getInstance(UUID cardId) { return new SourceHasRemainedInSameZoneCondition(cardId);