mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[SNC] fixed Unlicensed Hearse power/toughness calculation (fixes #8938)
This commit is contained in:
parent
5316da040d
commit
a6dc71ac97
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue