59 lines
2.2 KiB
Groovy
59 lines
2.2 KiB
Groovy
[
|
|
new MagicPlaneswalkerActivation(1) {
|
|
@Override
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
source,
|
|
this,
|
|
"You gain 2 life."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicChangeLifeAction(event.getPlayer(), 2));
|
|
}
|
|
},
|
|
new MagicPlaneswalkerActivation(-1) {
|
|
@Override
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
source,
|
|
this,
|
|
"Put a +1/+1 counter on each creature you control. Those creatures gain vigilance until end of turn."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
final Collection<MagicPermanent> targets = game.filterPermanents(
|
|
event.getPlayer(),
|
|
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL
|
|
);
|
|
for (final MagicPermanent target : targets) {
|
|
game.doAction(new MagicChangeCountersAction(
|
|
target,
|
|
MagicCounterType.PlusOne,
|
|
1,
|
|
true
|
|
));
|
|
game.doAction(new MagicGainAbilityAction(target, MagicAbility.Vigilance));
|
|
}
|
|
|
|
}
|
|
},
|
|
new MagicPlaneswalkerActivation(-6) {
|
|
@Override
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
source,
|
|
this,
|
|
"Put a white Avatar creature token onto the battlefield. " +
|
|
"It has \"This creature's power and toughness are each equal to your life total.\""
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicPlayTokenAction(event.getPlayer(), TokenCardDefinitions.get("Avatar")));
|
|
}
|
|
}
|
|
]
|