mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 05:09:16 -08:00
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:
parent
dc0d5a4bc8
commit
d1082293a8
4 changed files with 12 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue