magarena/release/Magarena/scripts/Balthor_the_Stout.groovy

42 lines
1.4 KiB
Groovy
Raw Normal View History

2013-08-31 20:22:05 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Pump),
"Pump"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{R}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
final MagicTargetChoice targetChoice = new MagicTargetChoice(
new MagicOtherPermanentTargetFilter(
MagicTargetFilter.TARGET_BARBARIAN,
source
),
true,
MagicTargetHint.Positive,
"another target Barbarian"
);
return new MagicEvent(
source,
targetChoice,
MagicPumpTargetPicker.create(),
this,
"Another target Barbarian creature\$ gets +1/+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, 1, 0));
}
});
}
}
]