Examples of OnEventTriggeredAbility


Examples of mage.abilities.common.OnEventTriggeredAbility

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

    this.addAbility(TrampleAbility.getInstance());
    this.addAbility(HasteAbility.getInstance());
    this.addAbility(new OnEventTriggeredAbility(EventType.END_TURN_STEP_PRE, "beginning of the end step", new SacrificeSourceEffect()));
  }
View Full Code Here

Examples of mage.abilities.common.OnEventTriggeredAbility

    this.power = new MageInt(4);
    this.toughness = new MageInt(4);

    this.addAbility(FlyingAbility.getInstance());
    this.addAbility(HasteAbility.getInstance());
    this.addAbility(new OnEventTriggeredAbility(EventType.END_TURN_STEP_PRE, "beginning of the end step", new SacrificeSourceEffect()));
    this.addAbility(new UnearthAbility(new ManaCostsImpl("{4}{R}")));

  }
View Full Code Here

Examples of mage.abilities.common.OnEventTriggeredAbility

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

    this.addAbility(HasteAbility.getInstance());
    this.addAbility(new OnEventTriggeredAbility(EventType.END_TURN_STEP_PRE, "beginning of the end step", new SacrificeSourceEffect()));
    this.addAbility(new UnearthAbility(new ManaCostsImpl("{1}{R}")));

  }
View Full Code Here

Examples of mage.abilities.common.OnEventTriggeredAbility

    super(ownerId, 199, "Eldrazi Monument", Rarity.MYTHIC, new CardType[]{CardType.ARTIFACT}, "{5}");
    this.expansionSetCode = "ZEN";
    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, FilterCreaturePermanent.getDefault(), false)));
    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.WhileOnBattlefield, FilterCreaturePermanent.getDefault())));
    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(IndestructibleAbility.getInstance(), Duration.WhileOnBattlefield, FilterCreaturePermanent.getDefault())));
    this.addAbility(new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, "beginning of your upkeep", new EldraziMonumentEffect()));
  }
View Full Code Here

Examples of mage.abilities.common.OnEventTriggeredAbility

  public AjanisMantra(UUID ownerId) {
    super(ownerId, 2, "Ajani's Mantra", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{1}{W}");
    this.expansionSetCode = "M11";
    this.getColor().setWhite(true);
    this.addAbility(new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, "beginning of your upkeep", new GainLifeEffect(1), true));
  }
View Full Code Here

Examples of mage.abilities.common.OnEventTriggeredAbility

    this.subtype.add("Shaman");
    this.color.setGreen(true);
    this.power = new MageInt(3);
    this.toughness = new MageInt(3);

    this.addAbility(new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, "beginning of your upkeep", new CreateTokenEffect(wolfToken)));
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MasterOfTheWildHuntEffect(), new TapSourceCost());
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.common.OnEventTriggeredAbility

  public AwakeningZone(UUID ownerId) {
    super(ownerId, 176, "Awakening Zone", Rarity.RARE, new CardType[]{CardType.ENCHANTMENT}, "{2}{G}");
    this.expansionSetCode = "ROE";
    this.getColor().setGreen(true);
    this.addAbility(new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, "beginning of your upkeep", new CreateTokenEffect(new EldraziSpawnToken()), true));
  }
View Full Code Here

Examples of mage.abilities.common.OnEventTriggeredAbility

  public DarkTutelage(UUID ownerId) {
    super(ownerId, 90, "Dark Tutelage", Rarity.RARE, new CardType[]{CardType.ENCHANTMENT}, "{2}{B}");
    this.expansionSetCode = "M11";
    this.getColor().setBlack(true);
    this.addAbility(new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, "beginning of your upkeep", new DarkTutelageEffect(), false));
  }
View Full Code Here

Examples of mage.abilities.common.OnEventTriggeredAbility

        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.WhileOnBattlefield, new FilterCreaturePermanent())));
        Effect effect = new GainAbilityAllEffect(IndestructibleAbility.getInstance(), Duration.WhileOnBattlefield, new FilterControlledCreaturePermanent("Creatures you control"), false);
        effect.setText("Creatures you control are indestructible");
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
        // At the beginning of your upkeep, sacrifice a creature. If you can't, sacrifice Eldrazi Monument.
        this.addAbility(new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, "beginning of your upkeep", new EldraziMonumentEffect()));
    }
View Full Code Here

Examples of mage.abilities.common.OnEventTriggeredAbility

public class JinxedIdol extends CardImpl<JinxedIdol> {

  public JinxedIdol(UUID ownerId) {
    super(ownerId, 208, "Jinxed Idol", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{2}");
    this.expansionSetCode = "M11";
    this.addAbility(new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, "beginning of your upkeep", new DamageControllerEffect(2)));
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new JinxedIdolEffect(), new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
    ability.addTarget(new TargetOpponent());
    this.addAbility(ability);
  }
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.