Package mage.abilities.condition.common

Examples of mage.abilities.condition.common.SourceHasSubtypeCondition


        this.addAbility(new BestowAbility(this, "{2}{R}"));
        // {R}: Everflame Eidolon gets +1/+0 until end of turn. If it's an Aura, enchanted creature gets +1/+0 until end of turn instead.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ConditionalContinousEffect(
                new BoostEnchantedEffect(1, 0, Duration.EndOfTurn),
                new BoostSourceEffect(1, 0, Duration.EndOfTurn),
                new SourceHasSubtypeCondition("Aura"),
                "{this} gets +1/+0 until end of turn. If it's an Aura, enchanted creature gets +1/+0 until end of turn instead"),
                new ManaCostsImpl("{R}")));
        // Enchanted creature gets +1/+1.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 1, Duration.WhileOnBattlefield)));
    }
View Full Code Here


        this.addAbility(new BestowAbility(this, "{5}{B}"));
        // Discard a creature card: Erebos's Emissary gets +2/+2 until end of turn. If Erebos's Emissary is an Aura, enchanted creature gets +2/+2 until end of turn instead.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ConditionalContinousEffect(
                new BoostEnchantedEffect(2,2, Duration.EndOfTurn),
                new BoostSourceEffect(2,2, Duration.EndOfTurn),
                new SourceHasSubtypeCondition("Aura"),
                "{this} gets +2/+2 until end of turn. If Erebos's Emissary is an Aura, enchanted creature gets +2/+2 until end of turn instead"),
                new DiscardTargetCost(new TargetCardInHand(new FilterCreatureCard()))));
        // Enchanted creature gets +3/+3
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(3,3, Duration.WhileOnBattlefield)));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.condition.common.SourceHasSubtypeCondition

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.