mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* FixedTarget added new constructor using permanent object.
This commit is contained in:
parent
8d1da5c35f
commit
5a7633691a
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue