69 lines
2.4 KiB
Groovy
69 lines
2.4 KiB
Groovy
[
|
|
new MagicPlaneswalkerActivation(1) {
|
|
@Override
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
source,
|
|
this,
|
|
"Put a 3/3 green Beast creature token onto the battlefield."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame game,
|
|
final MagicEvent event) {
|
|
game.doAction(new MagicPlayTokenAction(
|
|
event.getPlayer(),
|
|
TokenCardDefinitions.get("Beast3")
|
|
));
|
|
}
|
|
},
|
|
new MagicPlaneswalkerActivation(-3) {
|
|
@Override
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
source,
|
|
this,
|
|
"Draw cards equal to the greatest power among creatures you control."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame game,
|
|
final MagicEvent event) {
|
|
final Collection<MagicPermanent> targets = game.filterPermanents(
|
|
event.getPlayer(),
|
|
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
|
|
int power = 0;
|
|
for (final MagicPermanent creature : targets) {
|
|
power = Math.max(power,creature.getPower());
|
|
}
|
|
game.doAction(new MagicDrawAction(
|
|
event.getPlayer(),
|
|
power
|
|
));
|
|
}
|
|
},
|
|
new MagicPlaneswalkerActivation(-6) {
|
|
@Override
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
source,
|
|
this,
|
|
"Put a 6/6 green Wurm creature token onto the battlefield for each land you control."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame game,
|
|
final MagicEvent event) {
|
|
final int amt = event.getPlayer().getNrOfPermanentsWithType(MagicType.Land);
|
|
game.doAction(new MagicPlayTokensAction(
|
|
event.getPlayer(),
|
|
TokenCardDefinitions.get("Wurm6G"),
|
|
amt
|
|
));
|
|
}
|
|
}
|
|
]
|