2013-03-18 06:11:22 -07:00
|
|
|
[
|
|
|
|
new MagicWhenComesIntoPlayTrigger() {
|
2012-06-17 05:19:08 -07:00
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
|
|
|
|
return new MagicEvent(
|
2011-08-13 02:16:33 -07:00
|
|
|
permanent,
|
|
|
|
player,
|
|
|
|
this,
|
|
|
|
"Destroy all tapped creatures.");
|
2012-06-17 05:19:08 -07:00
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(
|
2011-08-13 02:16:33 -07:00
|
|
|
final MagicGame game,
|
2013-03-22 22:00:53 -07:00
|
|
|
final MagicEvent event) {
|
2012-10-07 07:33:18 -07:00
|
|
|
final Collection<MagicPermanent> targets =
|
|
|
|
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_TAPPED_CREATURE);
|
2012-06-17 05:19:08 -07:00
|
|
|
game.doAction(new MagicDestroyAction(targets));
|
|
|
|
}
|
2013-03-18 06:11:22 -07:00
|
|
|
}
|
|
|
|
]
|