Package mage.abilities.common

Examples of mage.abilities.common.LeavesBattlefieldTriggeredAbility


        this.addAbility(new VanishingSacrificeAbility());
        // When Keldon Marauders enters the battlefield or leaves the battlefield, it deals 1 damage to target player.
        Ability ability = new EntersBattlefieldTriggeredAbility(new DamageTargetEffect(1), false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
        Ability ability2 = new LeavesBattlefieldTriggeredAbility(new DamageTargetEffect(1), false);
        ability2.addTarget(new TargetPlayer());
        this.addAbility(ability2);


    }
View Full Code Here


                new EntersBattlefieldTriggeredAbility(new NecromancyReAttachEffect(), false),
                SourceOnBattelfieldCondition.getInstance(),
                "When {this} enters the battlefield, if it's on the battlefield,  it becomes an Aura with \"enchant creature put onto the battlefield with {this}.\" Put target creature card from a graveyard onto the battlefield under your control and attach {this} to it.");
        ability.addTarget(new TargetCardInGraveyard(new FilterCreatureCard("creature card from a graveyard")));
        this.addAbility(ability);
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new NecromancyLeavesBattlefieldTriggeredEffect(), false));    
    }
View Full Code Here

        this.addAbility(ability);


        // When Detention Sphere leaves the battlefield, return the exiled
        // cards to the battlefield under their owner's control.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new DetentionSphereLeavesEffect(), false));
    }
View Full Code Here

        this.addAbility(new VanishingUpkeepAbility(2));
        this.addAbility(new VanishingSacrificeAbility());
        // When Aven Riftwatcher enters the battlefield or leaves the battlefield, you gain 2 life.
        Ability ability = new EntersBattlefieldTriggeredAbility(new GainLifeEffect(2), false);
        this.addAbility(ability);
        Ability ability2 = new LeavesBattlefieldTriggeredAbility(new GainLifeEffect(2), false);
        this.addAbility(ability2);
    }
View Full Code Here

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(this.getId(), this.getName()), new RemoveCountersSourceCost(CounterType.FADE.createInstance()));
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);

        // When Parallax Wave leaves the battlefield, each player returns to the battlefield all cards he or she owns exiled with Parallax Wave.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new ParallaxWaveEffect(), false));

    }
View Full Code Here

        // Remove a fade counter from Parallax Tide: Exile target land.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetForSourceEffect("Parallax Tide Exile"), new RemoveCountersSourceCost(CounterType.FADE.createInstance()));
        ability.addTarget(new TargetLandPermanent());
        this.addAbility(ability);
        // When Parallax Tide leaves the battlefield, each player returns to the battlefield all cards he or she owns exiled with Parallax Tide.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new ReturnFromExileForSourceEffect(Zone.BATTLEFIELD), splitCard));
    }
View Full Code Here

        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);


        // When Tidehollow Sculler leaves the battlefield, return the exiled card to its owner's hand.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new TidehollowScullerLeaveEffect(), false ));
    }
View Full Code Here

        this.addAbility(ability);

        // When the creature put onto the battlefield with Diabolic Servitude dies, exile it and return Diabolic Servitude to its owner's hand.
        this.addAbility(new DiabolicServitudeCreatureDiesTriggeredAbility());
        // When Diabolic Servitude leaves the battlefield, exile the creature put onto the battlefield with Diabolic Servitude.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new DiabolicServitudeSourceLeftBattlefieldEffect(), false));

    }
View Full Code Here

        this.color.setBlue(true);

        //When Delusions of Mediocrity enters the battlefield, you gain 10 life.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(10), false));
        //When Delusions of Mediocrity leaves the battlefield, you lose 10 life.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new LoseLifeSourceControllerEffect(10), false));
    }
View Full Code Here

        this.color.setBlack(true);
        this.subtype.add("Zombie");
        this.subtype.add("Giant");
        this.power = new MageInt(4);
        this.toughness = new MageInt(4);
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new CreateTokenEffect(new ZombieToken("ALA")), false));
        this.addAbility(new UnearthAbility(new ManaCostsImpl("{3}{B}")));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.LeavesBattlefieldTriggeredAbility

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.