2013-09-25 23:51:00 -07:00
|
|
|
[
|
|
|
|
new MagicWhenDamageIsDealtTrigger() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
|
|
|
|
return (damage.getSource().hasSubType(MagicSubType.Sliver) &&
|
|
|
|
damage.isCombat() &&
|
|
|
|
damage.getTarget().isCreature()) ?
|
|
|
|
new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
damage.getTarget(),
|
|
|
|
this,
|
|
|
|
"Destroy RN. It can't be regenerated."
|
|
|
|
):
|
|
|
|
MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
game.doAction(MagicChangeStateAction.Set(
|
|
|
|
event.getRefPermanent(),
|
|
|
|
MagicPermanentState.CannotBeRegenerated
|
|
|
|
));
|
|
|
|
game.doAction(new MagicDestroyAction(event.getRefPermanent()));
|
|
|
|
}
|
2013-09-25 23:57:43 -07:00
|
|
|
}
|
2013-09-25 23:51:00 -07:00
|
|
|
]
|