2013-05-28 01:32:31 -07:00
|
|
|
[
|
|
|
|
new MagicPermanentActivation(
|
|
|
|
new MagicActivationHints(MagicTiming.Pump),
|
|
|
|
"Pump"
|
|
|
|
) {
|
|
|
|
@Override
|
|
|
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
|
|
|
return [
|
|
|
|
new MagicPayManaCostEvent(source,"{2}{R}")
|
|
|
|
];
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
|
|
|
source,
|
|
|
|
MagicTargetChoice.NEG_TARGET_CREATURE,
|
2013-05-28 01:42:50 -07:00
|
|
|
new MagicDamageTargetPicker(source.getCounters(MagicCounterType.PlusOne)),
|
2013-05-28 01:32:31 -07:00
|
|
|
this,
|
|
|
|
"SN deals damage to target creature\$ equals to the number of +1/+1 counters on SN."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
|
|
public void doAction(final MagicPermanent creature) {
|
|
|
|
final MagicDamage damage = new MagicDamage(
|
|
|
|
event.getSource(),
|
|
|
|
creature,
|
2013-05-28 01:42:50 -07:00
|
|
|
event.getPermanent().getCounters(MagicCounterType.PlusOne)
|
2013-05-28 01:32:31 -07:00
|
|
|
);
|
|
|
|
game.doAction(new MagicDealDamageAction(damage));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|