* Electropotence - Fixed that it did not trigger for tokens and mana payment is now during resolution as it should be.

This commit is contained in:
LevelX2 2014-03-21 14:40:55 +01:00
parent e4231c7977
commit a079727608
2 changed files with 33 additions and 32 deletions

View file

@ -305,12 +305,13 @@ class ReboundCastSpellFromExileEffect extends OneShotEffect<ReboundCastSpellFrom
}
Card reboundCard = zone.get(this.cardId, game);
Player player = game.getPlayer(source.getControllerId());
SpellAbility ability = reboundCard.getSpellAbility();
player.cast(ability, game, true);
zone.remove(reboundCard.getId());
return true;
if (player != null && reboundCard != null) {
SpellAbility ability = reboundCard.getSpellAbility();
player.cast(ability, game, true);
zone.remove(reboundCard.getId());
return true;
}
return false;
}
@Override