Menu

Submission for Safehold Duo

238

Config

name=Safehold Duo
url=http://magiccards.info/shm/en/238.html
image=http://magiccards.info/scans/en/shm/238.jpg
value=2.574
rarity=C
type=Creature
subtype=Elf,Shaman,Warrior
cost={3}{G/W}
pt=2/4
timing=main
requires_groovy_code

Script

[
    new MagicWhenOtherSpellIsCastTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack cardOnStack) {
            return (permanent.isFriend(cardOnStack) &&
                    cardOnStack.hasColor(MagicColor.Green)) ?
                new MagicEvent(
                    permanent,
                    this,
                    "SN gets +1/+1 until the end of turn."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),1,1));
        }
    },
    new MagicWhenOtherSpellIsCastTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack cardOnStack) {
            return (permanent.isFriend(cardOnStack) &&
                    cardOnStack.hasColor(MagicColor.White)) ?
                new MagicEvent(
                    permanent,
                    this,
                    "SN gains vigilance until the end of turn."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicGainAbilityAction(event.getPermanent(), MagicAbility.Vigilance));
        }
    }
]
Pushed