magarena/release/Magarena/scripts/Goblin_Burrows.groovy

40 lines
1.2 KiB
Groovy
Raw Normal View History

2013-05-27 00:25:32 -07:00
[
new MagicPermanentActivation(
[
2013-06-14 20:23:55 -07:00
//add ONE for the card itself
2013-06-23 18:29:26 -07:00
MagicConditionFactory.ManaCost("{2}{R}"),
2013-05-27 00:25:32 -07:00
],
2013-04-12 19:32:25 -07:00
new MagicActivationHints(MagicTiming.Pump),
"Pump"
) {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
2013-05-27 00:25:32 -07:00
return [
2013-04-12 19:32:25 -07:00
new MagicTapEvent(source),
new MagicPayManaCostEvent(source,"{1}{R}")
2013-05-27 00:25:32 -07:00
];
2013-04-12 19:32:25 -07:00
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.POS_TARGET_GOBLIN_CREATURE,
MagicPumpTargetPicker.create(),
this,
2013-05-27 00:25:32 -07:00
"Target Goblin creature\$ gets +2/+0 until end of turn."
2013-04-12 19:32:25 -07:00
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicChangeTurnPTAction(creature,2,0));
}
});
}
2013-05-27 00:25:32 -07:00
}
]