fix invalid contains method in Hedonist Trove

This commit is contained in:
Ingmar Goudt 2021-08-22 12:05:51 +02:00
parent 271f7b812f
commit 167d66fdff

View file

@ -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());
}
}