replace groovy code with card script

master
melvin 2013-10-31 17:28:59 +08:00
parent 8ce1f0f2a5
commit e3d44ff1d9
2 changed files with 2 additions and 37 deletions

View File

@ -1,35 +0,0 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Pump),
"Pump"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicTapEvent(source),
new MagicPayManaCostEvent(source,"{1}{R}")
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.POS_TARGET_GOBLIN_CREATURE,
MagicPumpTargetPicker.create(),
this,
"Target Goblin creature\$ gets +2/+0 until end of turn."
);
}
@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));
}
});
}
}
]

View File

@ -4,6 +4,6 @@ image=http://magiccards.info/scans/en/evg/58.jpg
value=4.015
rarity=U
type=Land
ability=tap add mana {1}
ability=tap add mana {1};\
pay {1}{R}, {T}: Target Goblin creature gets +2/+0 until end of turn.
timing=land
requires_groovy_code