33 lines
1.2 KiB
Groovy
33 lines
1.2 KiB
Groovy
[
|
|
new MagicSpellCardEvent() {
|
|
@Override
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
this,
|
|
"PN may play up to three additional lands this turn."
|
|
);
|
|
}
|
|
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame outerGame,
|
|
final MagicEvent outerEvent) {
|
|
outerGame.doAction(new MagicAddStaticAction(MagicPermanent.NONE,
|
|
new MagicStatic(MagicLayer.Game, MagicStatic.UntilEOT) {
|
|
@Override
|
|
public void modGame(final MagicPermanent source, final MagicGame game) {
|
|
game.incMaxLand();
|
|
game.incMaxLand();
|
|
game.incMaxLand();
|
|
}
|
|
@Override
|
|
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
|
|
return game.getTurnPlayer().getId() == outerEvent.getPlayer().getId();
|
|
}
|
|
}
|
|
));
|
|
}
|
|
}
|
|
]
|