magarena/release/Magarena/scripts/Vitu_Ghazi_Guildmage.groovy

53 lines
1.7 KiB
Groovy

[
new MagicPermanentActivation(
[
MagicConditionFactory.ManaCost("{4}{G}{W}"),
],
new MagicActivationHints(MagicTiming.Flash),
"Token") {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{4}{G}{W}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Put a 3/3 green Centaur creature token onto the battlefield."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(event.getPlayer(), TokenCardDefinitions.get("Centaur3")));
}
},
new MagicPermanentActivation(
[
MagicConditionFactory.ManaCost("{2}{G}{W}"),
],
new MagicActivationHints(MagicTiming.Flash),
"Populate") {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{2}{G}{W}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Populate."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.addEvent(new MagicPopulateEvent(event.getSource()));
}
}
]