magarena/release/Magarena/scripts/Explore.groovy

30 lines
1.1 KiB
Groovy
Raw Normal View History

2013-05-18 20:12:11 -07:00
[
new MagicSpellCardEvent() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"PN may play an additional land this turn."
);
2012-06-17 05:19:08 -07:00
}
2011-06-07 20:46:49 -07:00
2012-06-17 05:19:08 -07:00
@Override
2013-05-18 20:15:06 -07:00
public void executeEvent(final MagicGame outerGame, final MagicEvent event) {
outerGame.doAction(new MagicAddStaticAction(
new MagicStatic(MagicLayer.Game, MagicStatic.UntilEOT) {
@Override
public void modGame(final MagicPermanent source, final MagicGame game) {
game.incMaxLand();
}
@Override
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
return game.getTurnPlayer().getId() == event.getPlayer().getId();
}
}
));
2013-05-18 20:15:06 -07:00
outerGame.doAction(new MagicDrawAction(event.getPlayer(),1));
2012-06-17 05:19:08 -07:00
}
2013-05-18 20:12:11 -07:00
}
]