mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
[MH2] fixed Dauthi Voidwalker not exiling permanents correctly (fixes #7905)
This commit is contained in:
parent
6d827c9b5e
commit
b5223a4279
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue