@Override public void executeEvent(final MagicGame game, final MagicEvent event) { final MagicPermanent permanent = event.getPermanent(); final Collection<MagicPermanent> targets = MagicTargetFilterFactory.ATTACKING_CREATURE.filter(event); for (final MagicPermanent creature : targets) { if (creature != permanent && creature.isAttacking()) { game.doAction(new ChangeTurnPTAction(creature, 1, 0)); } } }
@Override public void executeEvent(final MagicGame game, final MagicEvent event) { game.doAction(new ChangeTurnPTAction(event.getRefPermanent(), 1, 1)); }
@Override public void executeEvent(final MagicGame game, final MagicEvent event) { if (event.isNo()) { game.doAction(new SacrificeAction(event.getPermanent())); } }
@Override public void executeEvent(final MagicGame game, final MagicEvent event) { game.doAction( ChangeCountersAction.Enters(event.getPermanent(), MagicCounterType.PlusOne, amount)); }