forked from External/mage
make batchs for milling cards (per player, all)
Rework and test the couple of existing cards triggering on mill.
This commit is contained in:
parent
4edb9ce270
commit
7c3bbed8f3
17 changed files with 452 additions and 107 deletions
|
|
@ -5093,9 +5093,10 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
Cards cards = new CardsImpl(this.getLibrary().getTopCards(game, event.getAmount()));
|
||||
this.moveCards(cards, Zone.GRAVEYARD, source, game);
|
||||
for (Card card : cards.getCards(game)) {
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.MILLED_CARD, card.getId(), source, getId()));
|
||||
MilledCardEvent milledEvent = new MilledCardEvent(card, getId(), source);
|
||||
game.fireEvent(milledEvent);
|
||||
game.getState().addSimultaneousMilledCardToBatch(milledEvent, game);
|
||||
}
|
||||
game.fireEvent(new MilledCardsEvent(source, getId(), cards));
|
||||
return cards;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue