41 lines
1.4 KiB
Groovy
41 lines
1.4 KiB
Groovy
[
|
|
new MagicPermanentActivation(
|
|
[
|
|
//add ONE for the card itself as it cannot pay for itself
|
|
MagicConditionFactory.ManaCost("{3}{G}{W}"),
|
|
],
|
|
new MagicActivationHints(MagicTiming.Pump),
|
|
"Pump"
|
|
) {
|
|
@Override
|
|
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
|
|
return [
|
|
new MagicTapEvent(source),
|
|
new MagicPayManaCostEvent(source,"{2}{G}{W}")
|
|
];
|
|
}
|
|
@Override
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
source,
|
|
this,
|
|
"Put a +1/+1 counter on each creature you control."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
final MagicPlayer player = event.getPlayer();
|
|
final Collection<MagicPermanent> targets =
|
|
game.filterPermanents(player,MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
|
|
for (final MagicPermanent target : targets) {
|
|
game.doAction(new MagicChangeCountersAction(
|
|
target,
|
|
MagicCounterType.PlusOne,
|
|
1,
|
|
true
|
|
));
|
|
}
|
|
}
|
|
}
|
|
]
|