mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
[ISD] Devil's Play
This commit is contained in:
parent
9fcc526e9a
commit
6eb6532614
3 changed files with 76 additions and 1 deletions
|
|
@ -31,6 +31,8 @@ import mage.Constants;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.ActivatedAbilityImpl;
|
||||
import mage.abilities.DelayedTriggeredAbility;
|
||||
import mage.abilities.costs.Cost;
|
||||
import mage.abilities.costs.mana.ManaCost;
|
||||
import mage.abilities.costs.mana.ManaCosts;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.CreateDelayedTriggeredAbilityEffect;
|
||||
|
|
@ -111,6 +113,10 @@ class FlashbackEffect extends OneShotEffect<FlashbackEffect> {
|
|||
if (target != null) {
|
||||
Player controller = game.getPlayer(target.getOwnerId());
|
||||
if (controller != null) {
|
||||
target.getSpellAbility().getManaCostsToPay().clear();
|
||||
for (Cost cost: source.getManaCostsToPay()) {
|
||||
target.getSpellAbility().getManaCostsToPay().add((ManaCost) cost.copy());
|
||||
}
|
||||
return controller.cast(target.getSpellAbility(), game, true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue