Package mage.abilities.keyword

Examples of mage.abilities.keyword.ProtectionAbility


        this.getSpellAbility().addEffect(new AttachEffect(Outcome.Protect));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);

        // Enchanted creature has protection from multicolored.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(new ProtectionAbility(filter), AttachmentType.AURA, Duration.WhileOnBattlefield)));
    }
View Full Code Here


        this.power = new MageInt(4);
        this.toughness = new MageInt(4);

        // Lifelink, protection from white and from black.
        this.addAbility(LifelinkAbility.getInstance());
        this.addAbility(new ProtectionAbility(filter));

        // As long as you have 30 or more life and an opponent has 10 or less life, Blood Baron of Vizkopa gets +6/+6 and has flying.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BloodBaronOfVizkopaEffect()));

    }
View Full Code Here

        this.color.setWhite(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(2);

        // Protection from red
        this.addAbility(new ProtectionAbility(protectionFilter));
    }
View Full Code Here

        this.color.setWhite(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(2);

        // Protection from Vampires
        this.addAbility(new ProtectionAbility(filter));
    }
View Full Code Here

        this.color.setWhite(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        // {1}{W}: Target permanent you control gains protection from white until end of turn.
        Ability ability1 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(
                new ProtectionAbility(filter), Duration.EndOfTurn), new ManaCostsImpl("{1}{W}"));
        ability1.addTarget(new TargetControlledPermanent());
        this.addAbility(ability1);
        // {1}: Target spell or permanent becomes white until end of turn.
        Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SetCardColorTargetEffect(
                ObjectColor.WHITE, Duration.EndOfTurn),new ManaCostsImpl("{1}"));
View Full Code Here

        this.addAbility(FirstStrikeAbility.getInstance());
        this.addAbility(VigilanceAbility.getInstance());

        // Protection from Vampires, from Werewolves, and from Zombies.
        this.addAbility(new ProtectionAbility(filter));
    }
View Full Code Here

        // Changeling (This card is every creature type at all times.)
        this.addAbility(ChangelingAbility.getInstance());

        // Protection from black
        this.addAbility(new ProtectionAbility(filter));

        // {2}{G}{G}: Chameleon Colossus gets +X/+X until end of turn, where X is its power.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ChameleonColossusEffect(), new ManaCostsImpl("{2}{G}{G}")));
    }
View Full Code Here

        this.power = new MageInt(3);
        this.toughness = new MageInt(4);

        this.addAbility(DefenderAbility.getInstance());
        // protection from Zombies
        this.addAbility(new ProtectionAbility(filter));
    }
View Full Code Here

        this.color.setGreen(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(0);

        // Protection from black
        this.addAbility(new ProtectionAbility(filter));

        // Phantom Centaur enters the battlefield with three +1/+1 counters on it.
        this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance(3)), "with three +1/+1 counters on it"));

        // If damage would be dealt to Phantom Centaur, prevent that damage. Remove a +1/+1 counter from Phantom Centaur.
View Full Code Here

        this.addAbility(ability);

        // When Unquestioned Authority enters the battlefield, draw a card.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1)));
        // Enchanted creature has protection from creatures.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(new ProtectionAbility(filter), AttachmentType.AURA)));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.keyword.ProtectionAbility

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.