simplify groovy script

master
melvin 2013-10-13 14:01:12 +08:00
parent bd3f3621b7
commit 97afab12cb
1 changed files with 4 additions and 4 deletions

View File

@ -5,14 +5,14 @@
return new MagicEvent(
cardOnStack,
this,
"Destroy all forests."
"Destroy all Forests."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final Collection<MagicPermanent> targets=
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_FOREST);
game.doAction(new MagicDestroyAction(targets));
game.doAction(new MagicDestroyAction(
game.filterPermanents(MagicTargetFilter.TARGET_FOREST);
));
}
}
]