[LCI] fix descended watcher counting nonpermanent cards

This commit is contained in:
theelk801 2023-10-28 12:50:57 -04:00
parent a681325f66
commit f9bb491390

View file

@ -31,7 +31,7 @@ public class DescendedWatcher extends Watcher {
}
ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
Card card = game.getCard(zEvent.getTargetId());
if (card != null && zEvent.getToZone() == Zone.GRAVEYARD) {
if (card != null && card.isPermanent(game) && zEvent.getToZone() == Zone.GRAVEYARD) {
playerMap.compute(card.getOwnerId(), CardUtil::setOrIncrementValue);
}
}