Package mage.abilities.effects.common.continious

Examples of mage.abilities.effects.common.continious.LoseAbilitySourceEffect


    static{
        filter.add(Predicates.and(new CardTypePredicate(CardType.CREATURE)));
    }
    public GuardianOfTheAgesTriggerAbility(){
        super(Zone.BATTLEFIELD, new GainAbilitySourceEffect(TrampleAbility.getInstance()));
        this.addEffect(new LoseAbilitySourceEffect(DefenderAbility.getInstance()));
    }
View Full Code Here


        // Hexproof
        this.addAbility(HexproofAbility.getInstance());

        // {3}{B}: Until end of turn, Xathrid Slyblade loses hexproof and gains first strike and deathtouch.
        Effect effect = new LoseAbilitySourceEffect(HexproofAbility.getInstance(), Duration.EndOfTurn);
        effect.setText("Until end of turn, {this} loses hexproof");
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{3}{B}"));
        Effect effect2 = new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn);
        effect2.setText("and gains first strike");
        ability.addEffect(effect2);
        Effect effect3 = new GainAbilitySourceEffect(DeathtouchAbility.getInstance(), Duration.EndOfTurn);
View Full Code Here

       
        // Flying
        this.addAbility(FlyingAbility.getInstance());
       
        // Whenever you cast a white spell, Loyal Gyrfalcon loses defender until end of turn.
        this.addAbility(new SpellCastAllTriggeredAbility(new LoseAbilitySourceEffect(DefenderAbility.getInstance(), Duration.EndOfTurn), filter, false, rule));
       
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.continious.LoseAbilitySourceEffect

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.