magarena/release/Magarena/scripts/Murderous_Redcap.groovy

26 lines
1.0 KiB
Groovy
Raw Normal View History

2013-05-18 19:50:43 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2013-06-19 07:23:35 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
2012-06-17 05:19:08 -07:00
return new MagicEvent(
2012-09-02 00:48:41 -07:00
permanent,
MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER,
2013-05-18 19:50:43 -07:00
new MagicDamageTargetPicker(permanent.getPower()),
2012-09-02 00:48:41 -07:00
this,
2013-05-18 19:50:43 -07:00
"SN deals damage equal to its power to target creature or player\$."
);
2012-06-17 05:19:08 -07:00
}
2013-06-23 18:29:26 -07:00
2012-06-17 05:19:08 -07:00
@Override
2013-03-22 22:00:53 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2012-09-02 00:48:41 -07:00
final MagicPermanent permanent=event.getPermanent();
event.processTarget(game,new MagicTargetAction() {
public void doAction(final MagicTarget target) {
final MagicDamage damage=new MagicDamage(permanent,target,permanent.getPower());
game.doAction(new MagicDealDamageAction(damage));
}
2012-06-17 05:19:08 -07:00
});
}
2013-05-18 19:50:43 -07:00
}
]