mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Added setting required target for flashback abilities. Needed because of wrong implementation of flashback but it prevents from accidental canceling targeting
This commit is contained in:
parent
66bc622d19
commit
557e8a7be5
1 changed files with 4 additions and 0 deletions
|
@ -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<FlashbackEffect> {
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue