magarena/release/Magarena/scripts/Seedborn_Muse.groovy

24 lines
904 B
Groovy
Raw Normal View History

2013-05-17 20:54:07 -07:00
[
new MagicAtUpkeepTrigger() {
2013-04-12 19:32:25 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
return permanent.isOpponent(upkeepPlayer) ?
new MagicEvent(
permanent,
this,
"Untap all permanents you control."
):
MagicEvent.NONE;
}
@Override
2013-05-17 20:54:07 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:32:25 -07:00
final MagicPlayer player = event.getPlayer();
final Collection<MagicPermanent> targets =
game.filterPermanents(player,MagicTargetFilter.TARGET_PERMANENT_YOU_CONTROL);
for (final MagicPermanent target : targets) {
game.doAction(new MagicUntapAction(target));
}
}
2013-05-17 20:54:07 -07:00
}
]