30 lines
1010 B
Groovy
30 lines
1010 B
Groovy
|
[
|
||
|
new MagicPermanentActivation(
|
||
|
new MagicActivationHints(MagicTiming.Pump),
|
||
|
"Pump"
|
||
|
) {
|
||
|
@Override
|
||
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
||
|
return [new MagicPayManaCostSacrificeEvent(source,"{1}{W}")];
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
||
|
return new MagicEvent(
|
||
|
source,
|
||
|
this,
|
||
|
"Creatures PN controls get +1/+1 until end of turn."
|
||
|
);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||
|
final Collection<MagicPermanent> targets =
|
||
|
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
|
||
|
for (final MagicPermanent target : targets) {
|
||
|
game.doAction(new MagicChangeTurnPTAction(target,1,1));
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|