mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Greenwarden of Murasa - Fixed that it could still return itself from graveyard (fixes #1295).
This commit is contained in:
parent
d3b56c9cc4
commit
964eb0b643
1 changed files with 1 additions and 1 deletions
|
@ -105,11 +105,11 @@ class GreenwardenOfMurasaEffect extends OneShotEffect {
|
|||
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)) {
|
||||
new ExileSourceEffect().apply(game, source);
|
||||
// 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;
|
||||
|
|
Loading…
Reference in a new issue