forked from External/mage
Added framework method for copying a StackAbility without casting it.
Modified the effects doing so with the new method.
This commit is contained in:
parent
b9ab16d945
commit
8823839a42
34 changed files with 158 additions and 313 deletions
|
|
@ -140,10 +140,7 @@ class EpicPushEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
if (spell != null) {
|
||||
// don't change the targets of the in the origin copied spell
|
||||
Spell copySpell = spell.copy();
|
||||
game.getStack().push(copySpell);
|
||||
copySpell.chooseNewTargets(game, source.getControllerId());
|
||||
spell.createCopyOnStack(game, source, source.getControllerId(), true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue