2013-09-20 19:34:40 -07:00
|
|
|
[
|
|
|
|
new MagicWhenBlocksOrBecomesBlockedTrigger() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
|
2013-09-21 02:36:49 -07:00
|
|
|
final MagicPermanent creature = permanent == blocker ? blocker.getBlockedCreature() : blocker;
|
|
|
|
return (creature.getPower() <= 1) ?
|
2013-09-20 19:34:40 -07:00
|
|
|
new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
this,
|
|
|
|
"Destroy Arrogant Bloodlord at end of combat."
|
|
|
|
):
|
|
|
|
MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
event.processPermanent(game, {
|
|
|
|
final MagicPermanent permanent ->
|
|
|
|
game.doAction(new MagicAddTriggerAction(
|
|
|
|
permanent,
|
|
|
|
MagicAtEndOfCombatTrigger.Destroy
|
|
|
|
))
|
|
|
|
} as MagicPermanentAction);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|