magarena/release/Magarena/scripts/Garruk__Primal_Hunter.groovy

69 lines
2.4 KiB
Groovy
Raw Normal View History

2013-02-23 23:31:46 -08:00
[
new MagicPlaneswalkerActivation(1) {
2013-02-23 23:31:46 -08:00
@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,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2013-02-23 23:31:46 -08:00
game.doAction(new MagicPlayTokenAction(
event.getPlayer(),
TokenCardDefinitions.get("Beast3")
));
}
},
new MagicPlaneswalkerActivation(-3) {
2013-02-23 23:31:46 -08:00
@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,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2013-02-23 23:31:46 -08:00
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) {
2013-02-23 23:31:46 -08:00
@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,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2013-02-23 23:31:46 -08:00
final int amt = event.getPlayer().getNrOfPermanentsWithType(MagicType.Land);
game.doAction(new MagicPlayTokensAction(
event.getPlayer(),
TokenCardDefinitions.get("Wurm6G"),
amt
));
}
}
]