magarena/release/Magarena/scripts/Steel_Overseer.groovy

36 lines
1.2 KiB
Groovy
Raw Normal View History

2013-05-26 06:29:06 -07:00
[
2013-06-23 18:29:26 -07:00
new MagicPermanentActivation(
2013-05-26 06:29:06 -07:00
new MagicActivationHints(MagicTiming.Pump),
"Pump"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-26 06:29:06 -07:00
return [
new MagicTapEvent(source)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Put a +1/+1 counter on each artifact 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_ARTIFACT_CREATURE_YOU_CONTROL);
for (final MagicPermanent target : targets) {
game.doAction(new MagicChangeCountersAction(
target,
MagicCounterType.PlusOne,
1,
true
));
}
}
}
]