From 557e8a7be5053f8db2b1413f5bead54c77c6867e Mon Sep 17 00:00:00 2001 From: magenoxx Date: Thu, 9 Aug 2012 12:02:45 +0400 Subject: [PATCH] Added setting required target for flashback abilities. Needed because of wrong implementation of flashback but it prevents from accidental canceling targeting --- Mage/src/mage/abilities/keyword/FlashbackAbility.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mage/src/mage/abilities/keyword/FlashbackAbility.java b/Mage/src/mage/abilities/keyword/FlashbackAbility.java index c99cc76464..00ae280601 100644 --- a/Mage/src/mage/abilities/keyword/FlashbackAbility.java +++ b/Mage/src/mage/abilities/keyword/FlashbackAbility.java @@ -40,6 +40,7 @@ import mage.game.Game; import mage.game.events.GameEvent; import mage.game.events.ZoneChangeEvent; import mage.players.Player; +import mage.target.Target; /** * @@ -106,6 +107,9 @@ class FlashbackEffect extends OneShotEffect { card.getSpellAbility().clear(); int amount = source.getManaCostsToPay().getX(); card.getSpellAbility().getManaCostsToPay().setX(amount); + for (Target target : card.getSpellAbility().getTargets()) { + target.setRequired(true); + } return controller.cast(card.getSpellAbility(), game, true); } }