magarena/release/Magarena/scripts/Boros_Guildmage.groovy

64 lines
2.2 KiB
Groovy
Raw Normal View History

2013-05-30 19:54:01 -07:00
[
new MagicPermanentActivation(
[MagicConditionFactory.ManaCost("{1}{R}")],
new MagicActivationHints(MagicTiming.Pump,true),
"Haste"
) {
2012-06-17 05:19:08 -07:00
@Override
2012-10-08 07:21:23 -07:00
public MagicEvent[] getCostEvent(final MagicPermanent source) {
2013-05-30 19:54:01 -07:00
return [new MagicPayManaCostEvent(source,"{1}{R}")];
2012-06-17 05:19:08 -07:00
}
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.POS_TARGET_CREATURE,
MagicHasteTargetPicker.create(),
this,
2013-05-30 19:54:01 -07:00
"Target creature\$ gains haste until end of turn."
);
2012-06-17 05:19:08 -07:00
}
2012-06-17 05:19:08 -07:00
@Override
2013-05-30 19:54:01 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.Haste));
}
2012-06-17 05:19:08 -07:00
});
}
2013-05-30 19:54:01 -07:00
},
new MagicPermanentActivation(
[MagicConditionFactory.ManaCost("{1}{W}")],
new MagicActivationHints(MagicTiming.Block,true),
"First strike"
) {
2012-06-17 05:19:08 -07:00
@Override
2012-10-08 07:21:23 -07:00
public MagicEvent[] getCostEvent(final MagicPermanent source) {
2013-05-30 19:54:01 -07:00
return [new MagicPayManaCostEvent(source,"{1}{W}")];
2012-06-17 05:19:08 -07:00
}
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.POS_TARGET_CREATURE,
MagicFirstStrikeTargetPicker.create(),
this,
2013-05-30 19:54:01 -07:00
"Target creature\$ gains first strike until end of turn."
);
2012-06-17 05:19:08 -07:00
}
@Override
2013-05-30 19:54:01 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.FirstStrike));
}
2012-06-17 05:19:08 -07:00
});
}
2013-05-30 19:54:01 -07:00
}
]