Examples of CantBeTargetedAllEffect


Examples of mage.abilities.effects.common.CantBeTargetedAllEffect

        this.expansionSetCode = "WTH";

        this.color.setGreen(true);

        // Creatures can't be the targets of spells.
        CantBeTargetedAllEffect cantTargetEffect = new CantBeTargetedAllEffect(new FilterCreaturePermanent("Creatures"), new FilterSpell("spells"), Duration.WhileOnBattlefield);
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, cantTargetEffect));
    }
View Full Code Here

Examples of mage.abilities.effects.common.CantBeTargetedAllEffect

        this.expansionSetCode = "M11";
        this.color.setGreen(true);
        // Spells you control can't be countered by blue or black spells this turn
        this.getSpellAbility().addEffect(new CantCounterControlledEffect(filterTarget1, filterSource, Duration.EndOfTurn));
        // and creatures you control can't be the targets of blue or black spells this turn.
        this.getSpellAbility().addEffect(new CantBeTargetedAllEffect(filterTarget2, filterSource, Duration.EndOfTurn));
    }
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.