Examples of TargetHasSubtypeCondition


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
Copyright © 2018 www.massapi.com. 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.