magarena/release/Magarena/scripts/Ichor_Rats.groovy

19 lines
618 B
Groovy

[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
return new MagicEvent(
permanent,
this,
"Each player gets a poison counter."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
for (final MagicPlayer player : game.getPlayers()) {
game.doAction(new MagicChangePoisonAction(player,1));
}
}
}
]