updated target adjusters D through G

This commit is contained in:
Evan Kranzler 2018-09-26 22:13:35 -04:00
parent 8d9cf6a8d2
commit f6ed3a4d19
21 changed files with 348 additions and 364 deletions

View file

@ -1,7 +1,5 @@
package mage;
import java.io.Serializable;
import java.util.UUID;
import mage.cards.Card;
import mage.constants.Zone;
import mage.game.Game;
@ -10,6 +8,9 @@ import mage.game.stack.Spell;
import mage.game.stack.StackObject;
import org.apache.log4j.Logger;
import java.io.Serializable;
import java.util.UUID;
/**
* A object reference that takes zone changes into account.
*
@ -145,4 +146,8 @@ public class MageObjectReference implements Comparable<MageObjectReference>, Ser
}
return null;
}
public boolean zoneCounterIsCurrent(Game game) {
return game.getState().getZoneChangeCounter(sourceId) == zoneChangeCounter;
}
}