magarena/release/Magarena/scripts/Sarkhan_Vol.groovy

64 lines
2.5 KiB
Groovy
Raw Normal View History

2013-03-01 18:17:26 -08:00
[
new MagicPlaneswalkerActivation(1) {
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Creatures you control get +1/+1 and gain haste until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-03-01 18:17:26 -08:00
final Collection<MagicPermanent> targets = game.filterPermanents(
event.getPlayer(),
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL
);
for (final MagicPermanent creature : targets) {
game.doAction(new MagicChangeTurnPTAction(creature, 1, 1));
game.doAction(new MagicGainAbilityAction(creature, MagicAbility.Haste));
2013-03-01 18:17:26 -08:00
}
}
},
new MagicPlaneswalkerActivation(-2) {
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.NEG_TARGET_CREATURE,
MagicExileTargetPicker.create(),
this,
"Gain control of target creature\$ until end of turn. Untap that creature. It gains haste until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
2013-03-01 18:17:26 -08:00
public void doAction(final MagicPermanent perm) {
game.doAction(new MagicGainControlAction(event.getPlayer(),perm,MagicStatic.UntilEOT));
game.doAction(new MagicUntapAction(perm));
game.doAction(new MagicGainAbilityAction(perm,MagicAbility.Haste));
2013-03-01 18:17:26 -08:00
}
});
}
},
new MagicPlaneswalkerActivation(-6) {
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Put five 4/4 red Dragon creature tokens with flying onto the battlefield."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-03-01 18:17:26 -08:00
game.doAction(new MagicPlayTokensAction(
2013-06-23 18:29:26 -07:00
event.getPlayer(),
2013-03-01 18:17:26 -08:00
TokenCardDefinitions.get("Dragon4"),
5
));
}
}
]