Examples of ZoneChangeAllTriggeredAbility


Examples of mage.abilities.common.ZoneChangeAllTriggeredAbility

        this.toughness = new MageInt(1);

        // Whenever an artifact is put into a graveyard from the battlefield, you may have target opponent lose 1 life.
        Effect effect = new LoseLifeTargetEffect(1);
        effect.setText("you may have target opponent lose 1 life");
        Ability ability = new ZoneChangeAllTriggeredAbility(Zone.BATTLEFIELD, Zone.BATTLEFIELD, Zone.GRAVEYARD,
                effect, new FilterArtifactPermanent(),
                "Whenever an artifact is put into a graveyard from the battlefield, ", true);
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.common.ZoneChangeAllTriggeredAbility

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Stormfront Riders enters the battlefield, return two creatures you control to their owner's hand.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new ReturnToHandChosenControlledPermanentEffect(new FilterControlledPermanent("creatures you control"), 2)));
        // Whenever Stormfront Riders or another creature is returned to your hand from the battlefield, put a 1/1 white Soldier creature token onto the battlefield.
        this.addAbility(new ZoneChangeAllTriggeredAbility(Zone.BATTLEFIELD, Zone.BATTLEFIELD, Zone.HAND, new CreateTokenEffect(new SoldierToken()),
                filter,"Whenever {this} or another creature is returned to your hand from the battlefield, ", false));
       
    }
View Full Code Here

Examples of mage.abilities.common.ZoneChangeAllTriggeredAbility

        this.color.setWhite(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(2);

        // Whenever an enchantment is put into a graveyard from the battlefield, draw a card.
        this.addAbility(new ZoneChangeAllTriggeredAbility(Zone.BATTLEFIELD, Zone.BATTLEFIELD, Zone.GRAVEYARD,
                new DrawCardSourceControllerEffect(1), new FilterEnchantmentPermanent(),
                "Whenever an enchantment is put into a graveyard from the battlefield, ", false));
    }
View Full Code Here

Examples of mage.abilities.common.ZoneChangeAllTriggeredAbility

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

        // Whenever an artifact is put into a graveyard from the battlefield, you may put a +1/+1 counter on Moriok Rigger.
         Ability ability = new ZoneChangeAllTriggeredAbility(Zone.BATTLEFIELD, Zone.BATTLEFIELD, Zone.GRAVEYARD,
                new AddCountersSourceEffect(CounterType.P1P1.createInstance(1)), new FilterArtifactPermanent(),
                "Whenever an artifact is put into a graveyard from the battlefield, ", true);
         this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.common.ZoneChangeAllTriggeredAbility

        this.addAbility(new SimpleStaticAbility(
                Zone.BATTLEFIELD,
                new GainAbilityControlledEffect(IntimidateAbility.getInstance(),
                    Duration.WhileOnBattlefield, new FilterCreaturePermanent(), true )));
        // Whenever Vela the Night-Clad or another creature you control leaves the battlefield, each opponent loses 1 life.
        Ability ability = new ZoneChangeAllTriggeredAbility(
                Zone.BATTLEFIELD,
                Zone.BATTLEFIELD, null,
                new LoseLifeOpponentsEffect(1),
                filter, rule, false);
        this.addAbility(ability);
View Full Code Here

Examples of mage.abilities.common.ZoneChangeAllTriggeredAbility

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

        // Whenever a land is put into a graveyard from the battlefield, Akki Raider gets +1/+0 until end of turn.
        this.addAbility(new ZoneChangeAllTriggeredAbility(Zone.BATTLEFIELD, Zone.BATTLEFIELD, Zone.GRAVEYARD,
                new BoostSourceEffect(1,0,Duration.EndOfTurn), new FilterLandPermanent(),
                "Whenever a land is put into a graveyard from the battlefield, ", false));
    }
View Full Code Here

Examples of mage.abilities.common.ZoneChangeAllTriggeredAbility

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

        // Whenever an artifact is put into a graveyard from the battlefield, you may gain 5 life.
        this.addAbility(new ZoneChangeAllTriggeredAbility(Zone.BATTLEFIELD, Zone.BATTLEFIELD, Zone.GRAVEYARD,
                new GainLifeEffect(5), new FilterArtifactPermanent(),
                "Whenever an artifact is put into a graveyard from the battlefield, ", true));
    }
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.