mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
fix invalid contains method in Hedonist Trove
This commit is contained in:
parent
271f7b812f
commit
167d66fdff
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ class HedonistsTrovePlayLandEffect extends AsThoughEffectImpl {
|
|||
return false;
|
||||
}
|
||||
ExileZone exileZone = game.getExile().getExileZone(CardUtil.getExileZoneId(game, source));
|
||||
return exileZone != null && exileZone.contains(cardToCheck.getMainCard());
|
||||
return exileZone != null && exileZone.contains(cardToCheck.getMainCard().getId());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -149,7 +149,7 @@ class HedonistsTroveCastNonlandCardsEffect extends AsThoughEffectImpl {
|
|||
&& !cardToCheck.isLand(game)
|
||||
&& source.isControlledBy(affectedControllerId)
|
||||
&& exileZone != null
|
||||
&& exileZone.contains(cardToCheck.getMainCard());
|
||||
&& exileZone.contains(cardToCheck.getMainCard().getId());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue