62 lines
2.5 KiB
Groovy
62 lines
2.5 KiB
Groovy
[
|
|
new MagicPlaneswalkerActivation(1) {
|
|
@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, final MagicEvent event) {
|
|
if (event.isYes()) {
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
public void doAction(final MagicPermanent creature) {
|
|
game.doAction(new MagicChangeCountersAction(creature,MagicCounterType.PlusOne,1,true));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
},
|
|
new MagicPlaneswalkerActivation(-3) {
|
|
@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, final MagicEvent event) {
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
public void doAction(final MagicPermanent creature) {
|
|
game.doAction(new MagicGainAbilityAction(creature,MagicAbility.Flying,MagicAbility.DoubleStrike));
|
|
}
|
|
});
|
|
}
|
|
},
|
|
new MagicPlaneswalkerActivation(-8) {
|
|
@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, final MagicEvent event) {
|
|
final int amt = event.getPlayer().getLife();
|
|
game.doAction(new MagicPlayTokensAction(event.getPlayer(), TokenCardDefinitions.get("2/2 white Cat creature token"), amt));
|
|
}
|
|
}
|
|
]
|