This commit is contained in:
Evan Kranzler 2017-08-23 21:55:53 -04:00
parent 255b81f143
commit 514993bd0f

View file

@ -57,7 +57,7 @@ import mage.target.targetpointer.FixedTarget;
public class ShireiShizosCaretaker extends CardImpl { public class ShireiShizosCaretaker extends CardImpl {
public ShireiShizosCaretaker(UUID ownerId, CardSetInfo setInfo) { public ShireiShizosCaretaker(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{B}"); super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}");
addSuperType(SuperType.LEGENDARY); addSuperType(SuperType.LEGENDARY);
this.subtype.add("Spirit"); this.subtype.add("Spirit");
@ -151,7 +151,7 @@ class ShireiShizosCaretakerEffect extends OneShotEffect {
Effect effect = new ShireiShizosCaretakerReturnEffect(shireiId); Effect effect = new ShireiShizosCaretakerReturnEffect(shireiId);
effect.setText("return that card to the battlefield if {this} is still on the battlefield"); effect.setText("return that card to the battlefield if {this} is still on the battlefield");
DelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextEndStepDelayedTriggeredAbility(effect); DelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextEndStepDelayedTriggeredAbility(effect);
delayedAbility.getEffects().get(0).setTargetPointer(new FixedTarget(card.getId())); delayedAbility.getEffects().get(0).setTargetPointer(new FixedTarget(card.getId(), card.getZoneChangeCounter(game)));
game.addDelayedTriggeredAbility(delayedAbility, source); game.addDelayedTriggeredAbility(delayedAbility, source);
return true; return true;
} }