[SNC] fixed Unlicensed Hearse power/toughness calculation (fixes #8938)

This commit is contained in:
Evan Kranzler 2022-05-11 18:57:36 -04:00
parent 5316da040d
commit a6dc71ac97

View file

@ -78,7 +78,10 @@ enum UnlicensedHearseValue implements DynamicValue {
public int calculate(Game game, Ability sourceAbility, Effect effect) {
return Optional.of(game
.getExile()
.getExileZone(CardUtil.getExileZoneId(game, sourceAbility)))
.getExileZone(CardUtil.getExileZoneId(
game, sourceAbility.getSourceId(),
game.getState().getZoneChangeCounter(sourceAbility.getSourceId())
)))
.filter(Objects::nonNull)
.map(HashSet::size)
.orElse(0);