* FixedTarget added new constructor using permanent object.

This commit is contained in:
LevelX2 2015-08-17 12:37:32 +02:00
parent 8d1da5c35f
commit 5a7633691a

View file

@ -6,6 +6,7 @@ import java.util.UUID;
import mage.abilities.Ability;
import mage.cards.Card;
import mage.game.Game;
import mage.game.permanent.Permanent;
public class FixedTarget implements TargetPointer {
@ -18,6 +19,12 @@ public class FixedTarget implements TargetPointer {
this.initialized = false;
}
public FixedTarget(Permanent permanent, Game game) {
this.targetId = permanent.getId();
this.zoneChangeCounter = permanent.getZoneChangeCounter(game);
this.initialized = true;
}
/**
* Use this if you already want to fix the target object to the known zone
* now (otherwise the zone will be set if the ability triggers or not at