Menu

Submission for Empty-Shrine Kannushi

2

Config

name=Empty-Shrine Kannushi
image=http://magiccards.info/scans/en/bok/2.jpg
value=2.500
rarity=U
type=Creature
subtype=Human,Cleric
cost={W}
pt=1/1
timing=main
requires_groovy_code
oracle=Empty-Shrine Kannushi has protection from the colors of permanents you control.

Script

[
    new MagicStatic(MagicLayer.Ability) {
        @Override
        public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
            if (permanent.getController().controlsPermanent(MagicColor.Black)) {
                permanent.addAbility(MagicAbility.ProtectionFromBlack, flags);
            }
            if (permanent.getController().controlsPermanent(MagicColor.Blue)) {
                permanent.addAbility(MagicAbility.ProtectionFromBlue, flags);
            }
            if (permanent.getController().controlsPermanent(MagicColor.Green)) {
                permanent.addAbility(MagicAbility.ProtectionFromGreen, flags);
            }
            if (permanent.getController().controlsPermanent(MagicColor.Red)) {
                permanent.addAbility(MagicAbility.ProtectionFromRed, flags);
            }
            if (permanent.getController().controlsPermanent(MagicColor.White)) {
                permanent.addAbility(MagicAbility.ProtectionFromWhite, flags);
            }
        }
    }
]
Pushed