magarena/release/Magarena/scripts/Sage_of_Fables.groovy

15 lines
605 B
Groovy

[
new OtherEntersBattlefieldTrigger(MagicTrigger.REPLACEMENT) {
@Override
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPermanent otherPermanent) {
if (otherPermanent != permanent &&
otherPermanent.isCreature() &&
otherPermanent.isFriend(permanent) &&
otherPermanent.hasSubType(MagicSubType.Wizard)) {
game.doAction(ChangeCountersAction.Enters(otherPermanent,MagicCounterType.PlusOne,1));
}
return MagicEvent.NONE;
}
}
]