[MH2] fixed Dauthi Voidwalker not exiling permanents correctly (fixes #7905)

This commit is contained in:
Evan Kranzler 2021-06-13 08:46:22 -04:00
parent 6d827c9b5e
commit b5223a4279

View file

@ -80,7 +80,10 @@ class DauthiVoidwalkerReplacementEffect extends ReplacementEffectImpl {
@Override @Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) { public boolean replaceEvent(GameEvent event, Ability source, Game game) {
Player player = game.getPlayer(source.getControllerId()); Player player = game.getPlayer(source.getControllerId());
Card card = game.getCard(event.getTargetId()); Card card = ((ZoneChangeEvent) event).getTarget();
if (card == null) {
card = game.getCard(event.getTargetId());
}
if (player == null || card == null) { if (player == null || card == null) {
return false; return false;
} }