Package mage.abilities.common

Examples of mage.abilities.common.LeavesBattlefieldTriggeredAbility


        this.color.setBlack(true);
        this.power = new MageInt(5);
        this.toughness = new MageInt(5);

        // When Yukora, the Prisoner leaves the battlefield, sacrifice all non-Ogre creatures you control.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new YukoraThePrisonerEffect(), false));

    }
View Full Code Here


        this.toughness = new MageInt(4);

        // When Hazezon Tamar enters the battlefield, put X 1/1 Sand Warrior creature tokens that are red, green, and white onto the battlefield at the beginning of your next upkeep, where X is the number of lands you control at that time.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new HazezonTamarEntersEffect(), false));
        // When Hazezon leaves the battlefield, exile all Sand Warriors.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new ExileAllEffect(filter), false));
    }
View Full Code Here

        Ability ability = new EntersBattlefieldTriggeredAbility(new ExileTargetForSourceEffect("Leonin Relic-Warder exile"), true);
        Target target = new TargetPermanent(filter);
        ability.addTarget(target);
        this.addAbility(ability);

        Ability ability2 = new LeavesBattlefieldTriggeredAbility(new ReturnFromExileForSourceEffect(Zone.BATTLEFIELD), false);
        this.addAbility(ability2);
    }
View Full Code Here

        this.toughness = new MageInt(2);

        // When Realm Razer enters the battlefield, exile all lands.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new ExileAllEffect()));
        // When Realm Razer leaves the battlefield, return the exiled cards to the battlefield tapped under their owners' control.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new RealmRazerEffect(), false));
    }
View Full Code Here

        Target target = new TargetPermanent(anotherNonlandPermanent);
        ability1.addTarget(target);
        this.addAbility(ability1);

        // When Oblivion Ring leaves the battlefield, return the exiled card to the battlefield under its owner's control.
        Ability ability2 = new LeavesBattlefieldTriggeredAbility(new ReturnFromExileForSourceEffect(Zone.BATTLEFIELD), false);
        this.addAbility(ability2);
    }
View Full Code Here

        // When Thragtusk enters the battlefield, you gain 5 life.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(5)));

        // When Thragtusk leaves the battlefield, put a 3/3 green Beast creature token onto the battlefield.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new CreateTokenEffect(new BeastToken()), false));
    }
View Full Code Here

                new EntersBattlefieldTriggeredAbility(new DanceOfTheDeadReAttachEffect(), false),
                SourceOnBattelfieldCondition.getInstance(),
                "When {this} enters the battlefield, if it's on the battlefield, it loses \"enchant creature card in a graveyard\" and gains \"enchant creature put onto the battlefield with {this}.\" Return enchanted creature card to the battlefield under your control and attach {this} to it.");
        ability.addEffect(new DanceOfTheDeadChangeAbilityEffect());
        this.addAbility(ability);
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new DanceOfTheDeadLeavesBattlefieldTriggeredEffect(), false));        
       
        // Enchanted creature gets +1/+1 and doesn't untap during its controller's untap step.
        ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 1, Duration.WhileOnBattlefield));
        Effect effect = new SkipUntapSourceEffect();
        effect.setText("and doesn't untap during its controller's untap step");
View Full Code Here

        this.color.setRed(true);
        this.power = new MageInt(6);
        this.toughness = new MageInt(1);

        // When Spitebellows leaves the battlefield, it deals 6 damage to target creature.
        Ability ability = new LeavesBattlefieldTriggeredAbility(new DamageTargetEffect(6), false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
        // Evoke {1}{R}{R}
        this.addAbility(new EvokeAbility(this, "{1}{R}{R}"));
    }
View Full Code Here

        // When Angel of Serenity enters the battlefield, you may exile up to three other target creatures from the battlefield and/or creature cards from graveyards.
        this.addAbility(new AngelOfSerenityTriggeredAbility());

        // When Angel of Serenity leaves the battlefield, return the exiled cards to their owners' hands.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new AngelOfSerenityLeaveEffect(), false ));
    }
View Full Code Here

        // When Day of the Dragons enters the battlefield, exile all creatures you control. Then put that many 5/5 red Dragon creature tokens with flying onto the battlefield.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new DayOfTheDragonsEntersEffect(), false));

        // When Day of the Dragons leaves the battlefield, sacrifice all Dragons you control. Then return the exiled cards to the battlefield under your control.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new DayOfTheDragonsLeavesEffect(), false));
    }
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.