Fixed that Haste effects given to Obzedat on enters the battlefield stayed after going back to hand and recasting of it.

This commit is contained in:
LevelX2 2014-03-14 15:05:36 +01:00
parent dc0d5a4bc8
commit d1082293a8
4 changed files with 12 additions and 6 deletions

View file

@ -155,8 +155,9 @@ class WhipOfErebosReplacementEffect extends ReplacementEffectImpl<WhipOfErebosRe
@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
Card card = game.getCard(source.getFirstTarget());
if (card != null) {
card.moveToExile(null, "", source.getId(), game);
Player controller = game.getPlayer(source.getControllerId());
if (card != null && controller != null) {
controller.moveCardToExileWithInfo(card, null, null, source.getSourceId(), game, null);
}
return true;
}