magarena/release/Magarena/scripts/Ghor_Clan_Rampager.groovy

24 lines
1000 B
Groovy
Raw Normal View History

2013-02-14 06:15:23 -08:00
[
new MagicBloodrushActivation(MagicManaCost.RED_GREEN) {
@Override
public MagicEvent getCardEvent(final MagicCard source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.POS_TARGET_ATTACKING_CREATURE,
MagicPumpTargetPicker.create(),
this,
"Target attacking creature\$ gets +4/+4 and gains trample until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game,final MagicEvent event,final Object[] choiceResults) {
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicChangeTurnPTAction(creature,4,4));
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.Trample));
}
});
}
}
]