magarena/release/Magarena/scripts/Foundry_Street_Denizen.groovy

24 lines
837 B
Groovy

[
new MagicWhenOtherComesIntoPlayTrigger() {
@Override
public boolean accept(final MagicPermanent source, final MagicPermanent other) {
return other != source &&
other.hasColor(MagicColor.Red) &&
other.isCreature() &&
other.isFriend(source);
}
@Override
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent source, final MagicPermanent other) {
return new MagicEvent(
source,
this,
"SN gets +1/+0 until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),1,0));
}
}
]