forked from External/mage
clean MILLED_EVENT to not store Card directly.
This commit is contained in:
parent
98c3c0381b
commit
f24b3d988d
7 changed files with 13 additions and 13 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue