30 lines
978 B
Groovy
30 lines
978 B
Groovy
|
[
|
||
|
new MagicStatic(
|
||
|
MagicLayer.ModPT,
|
||
|
MagicTargetFilter.TARGET_SQUIRREL_CREATURE
|
||
|
) {
|
||
|
@Override
|
||
|
public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
|
||
|
pt.add(1,1);
|
||
|
}
|
||
|
},
|
||
|
new MagicWhenComesIntoPlayTrigger() {
|
||
|
@Override
|
||
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer player) {
|
||
|
return new MagicEvent(
|
||
|
permanent,
|
||
|
this,
|
||
|
"PN puts four 1/1 green Squirrel creature tokens onto the battlefield."
|
||
|
);
|
||
|
}
|
||
|
@Override
|
||
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||
|
game.doAction(new MagicPlayTokensAction(
|
||
|
event.getPlayer(),
|
||
|
TokenCardDefinitions.get("Squirrel1"),
|
||
|
4
|
||
|
));
|
||
|
}
|
||
|
}
|
||
|
]
|