clean MILLED_EVENT to not store Card directly.

This commit is contained in:
Susucre 2024-05-02 09:05:01 +02:00
parent 98c3c0381b
commit f24b3d988d
7 changed files with 13 additions and 13 deletions

View file

@ -59,7 +59,7 @@ public class MillTriggeredAbility extends TriggeredAbilityImpl {
default:
throw new IllegalArgumentException("Wrong code usage. targetController not yet supported: " + targetController);
}
Card card = ((MilledCardEvent) event).getCard();
Card card = ((MilledCardEvent) event).getCard(game);
return card != null && filter.match(card, getControllerId(), this, game);
}

View file

@ -44,7 +44,7 @@ public class OneOrMoreMilledTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
int count = ((MilledBatchAllEvent) event).getCards().count(filter, getControllerId(), this, game);
int count = ((MilledBatchAllEvent) event).getCards(game).count(filter, getControllerId(), this, game);
if (count <= 0) {
return false;
}