21 lines
708 B
Groovy
21 lines
708 B
Groovy
[
|
|
new MagicWhenBlocksOrBecomesBlockedTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
permanent == blocker ? blocker.getBlockedCreature() : blocker,
|
|
this,
|
|
"Destroy RN at end of combat."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicAddTriggerAction(
|
|
event.getRefPermanent(),
|
|
MagicAtEndOfCombatTrigger.Destroy
|
|
));
|
|
}
|
|
}
|
|
]
|