mirror of
https://github.com/magefree/mage.git
synced 2026-01-19 01:39:58 -08:00
- ReturnFromGraveyardToHandTargetEffect() will now check to verify the target card is still in the graveyard.
This commit is contained in:
parent
087c437658
commit
d8a928051a
2 changed files with 12 additions and 40 deletions
|
|
@ -47,40 +47,4 @@ public final class GreenwardenOfMurasa extends CardImpl {
|
|||
public GreenwardenOfMurasa copy() {
|
||||
return new GreenwardenOfMurasa(this);
|
||||
}
|
||||
}
|
||||
|
||||
//class GreenwardenOfMurasaEffect extends OneShotEffect {
|
||||
//
|
||||
// public GreenwardenOfMurasaEffect() {
|
||||
// super(Outcome.Benefit);
|
||||
// this.staticText = "you may exile it. If you do, return target card from your graveyard to your hand";
|
||||
// }
|
||||
//
|
||||
// public GreenwardenOfMurasaEffect(final GreenwardenOfMurasaEffect effect) {
|
||||
// super(effect);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public GreenwardenOfMurasaEffect copy() {
|
||||
// return new GreenwardenOfMurasaEffect(this);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public boolean apply(Game game, Ability source) {
|
||||
// Player controller = game.getPlayer(source.getControllerId());
|
||||
// MageObject sourceObject = game.getObject(source.getSourceId());
|
||||
// Card targetCard = game.getCard(getTargetPointer().getFirst(game, source));
|
||||
// if (controller != null && sourceObject != null && targetCard != null) {
|
||||
// if (controller.chooseUse(outcome, "Exile " + sourceObject.getLogName() + " to return card from your graveyard to your hand?", source, game)) {
|
||||
// // Setting the fixed target prevents to return Greenwarden of Murasa itself (becuase it's exiled meanwhile),
|
||||
// // but of course you can target it as the ability triggers I guess
|
||||
// Effect effect = new ReturnToHandTargetEffect();
|
||||
// effect.setTargetPointer(new FixedTarget(targetCard.getId(), targetCard.getZoneChangeCounter(game)));
|
||||
// new ExileSourceEffect().apply(game, source);
|
||||
// return effect.apply(game, source);
|
||||
// }
|
||||
// return true;
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue