27 lines
1023 B
Groovy
27 lines
1023 B
Groovy
[
|
|
new MagicCDA() {
|
|
@Override
|
|
public void modPowerToughness(final MagicGame game,final MagicPlayer player,final MagicPowerToughness pt) {
|
|
final int size = game.filterCards(player,MagicTargetFilter.TARGET_CREATURE_CARD_FROM_GRAVEYARD).size();
|
|
pt.set(size,size);
|
|
}
|
|
},
|
|
new MagicAtUpkeepTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
|
|
return permanent.isController(upkeepPlayer) ?
|
|
new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"PN puts the top two cards of " +
|
|
"his or her library into his or her graveyard."
|
|
):
|
|
MagicEvent.NONE;
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicMillLibraryAction(event.getPlayer(),2));
|
|
}
|
|
}
|
|
]
|