magarena/release/Magarena/scripts/Ajani__Caller_of_the_Pride....

68 lines
2.5 KiB
Groovy
Raw Normal View History

2013-03-01 17:17:44 -08:00
[
new MagicPlaneswalkerActivation(1) {
2013-03-01 17:17:44 -08:00
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
new MagicMayChoice(
MagicTargetChoice.POS_TARGET_CREATURE
),
MagicPumpTargetPicker.create(),
this,
"PN may\$ put a +1/+1 counter on target creature\$."
);
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
if (event.isYes()) {
event.processTargetPermanent(game,new MagicPermanentAction() {
2013-03-01 17:17:44 -08:00
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicChangeCountersAction(creature,MagicCounterType.PlusOne,1,true));
}
});
}
}
},
new MagicPlaneswalkerActivation(-3) {
2013-03-01 17:17:44 -08:00
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.POS_TARGET_CREATURE,
MagicFlyingTargetPicker.create(),
this,
"Target creature\$ gains flying and double strike until end of turn."
);
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
2013-03-01 17:17:44 -08:00
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.Flying,MagicAbility.DoubleStrike));
}
});
}
},
new MagicPlaneswalkerActivation(-8) {
2013-03-01 17:17:44 -08:00
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Put X 2/2 white Cat creature tokens onto the battlefield, where X is your life total."
);
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2013-03-01 17:17:44 -08:00
final int amt = event.getPlayer().getLife();
game.doAction(new MagicPlayTokensAction(event.getPlayer(), TokenCardDefinitions.get("Cat2"), amt));
}
}
]