Package mage.abilities.condition.common

Examples of mage.abilities.condition.common.TargetHasSubtypeCondition


        this.color.setBlack(true);

        // Target creature gets -1/-1 until end of turn. If it's a Cyclops, destroy it.
        this.getSpellAbility().addEffect(new BoostTargetEffect(-1,-1, Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        Effect effect = new ConditionalOneShotEffect(new DestroyTargetEffect(), new TargetHasSubtypeCondition("Cyclops"),
                "If it's a Cyclops, destroy it");
        this.getSpellAbility().addEffect(effect);
    }
View Full Code Here

TOP

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

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.