magarena/release/Magarena/scripts/Maul_Splicer.groovy

29 lines
1014 B
Groovy

[
new MagicStatic(
MagicLayer.Ability,
MagicTargetFilter.TARGET_GOLEM_YOU_CONTROL) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.Trample);
}
},
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPayedCost payedCost) {
return new MagicEvent(
permanent,
this,
"PN puts two 3/3 colorless Golem artifact creature tokens onto the battlefield."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokensAction(
event.getPlayer(),
TokenCardDefinitions.get("Golem3"),
2
));
}
}
]