2013-02-18 02:34:27 -08:00
|
|
|
[
|
|
|
|
new MagicPermanentActivation(
|
2013-02-26 21:18:13 -08:00
|
|
|
[MagicConditionFactory.ManaCost("{2}{B}{R}")],
|
2013-02-18 02:34:27 -08:00
|
|
|
new MagicActivationHints(MagicTiming.Removal),
|
|
|
|
"Damage") {
|
|
|
|
@Override
|
|
|
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
|
|
|
final MagicPermanent permanent=source;
|
|
|
|
return [
|
2013-02-26 21:18:13 -08:00
|
|
|
new MagicPayManaCostEvent(source,source.getController(),MagicManaCost.create("{2}{B}{R}")),
|
2013-02-18 02:34:27 -08:00
|
|
|
new MagicSacrificeEvent(permanent)
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public MagicEvent getPermanentEvent(
|
|
|
|
final MagicPermanent source,
|
|
|
|
final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
|
|
|
source,
|
|
|
|
MagicTargetChoice.NEG_TARGET_PLAYER,
|
|
|
|
new MagicDamageTargetPicker(source.getPower()),
|
|
|
|
this,
|
|
|
|
"SN deals damage equal to its power to target player\$."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void executeEvent(
|
|
|
|
final MagicGame game,
|
|
|
|
final MagicEvent event,
|
|
|
|
final Object[] choiceResults) {
|
2013-03-21 06:35:09 -07:00
|
|
|
event.processTarget(game,new MagicTargetAction() {
|
2013-02-18 02:34:27 -08:00
|
|
|
public void doAction(final MagicTarget target) {
|
|
|
|
final MagicPermanent source=event.getPermanent();
|
|
|
|
final int amount=source.getPower();
|
|
|
|
if (amount > 0) {
|
2013-03-02 01:46:45 -08:00
|
|
|
final MagicDamage damage=new MagicDamage(source,target,amount);
|
2013-02-18 02:34:27 -08:00
|
|
|
game.doAction(new MagicDealDamageAction(damage));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|