Examples of Ability


Examples of mage.abilities.Ability

  }

  @Override
  public void addEffect(ContinuousEffect continuousEffect, Ability source) {
    ContinuousEffect newEffect = (ContinuousEffect)continuousEffect.copy();
    Ability newAbility = source.copy();
    newEffect.newId();
    newEffect.setTimestamp();
    newEffect.init(newAbility, this);
    state.addEffect(newEffect, newAbility);
  }
View Full Code Here

Examples of mage.abilities.Ability

        this.subtype.add("Vampire");
        this.subtype.add("Rogue");
        this.color.setBlack(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(2, 2, Duration.EndOfTurn), new ManaCostsImpl(""));
        ability.addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent()));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.Ability

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

    this.addAbility(FlyingAbility.getInstance());
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new VengefulArchonEffect(), new ManaCostsImpl("{X}"));
    ability.addTarget(new TargetPlayer());
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.Ability

    this.subtype.add("Aura");

    TargetPermanent auraTarget = new TargetCreaturePermanent();
    this.getSpellAbility().addTarget(auraTarget);
    this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
    Ability ability = new EnchantAbility(auraTarget.getTargetName());
    this.addAbility(ability);
    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ArmoredAscensionEffect()));

  }
View Full Code Here

Examples of mage.abilities.Ability

    this.color.setBlue(true);
    this.subtype.add("Elemental");
    this.power = new MageInt(4);
    this.toughness = new MageInt(3);
    this.addAbility(FlyingAbility.getInstance());
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{2}{U}"));
    ability.addTarget(new TargetCreaturePermanent(filter));
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.Ability

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

    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter1, true)));
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(UnblockableAbility.getInstance(), Duration.EndOfTurn), new TapSourceCost());
    ability.addTarget(new TargetCreaturePermanent(filter2));
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.Ability

    this.subtype.add("Human");
    this.subtype.add("Wizard");
    this.color.setWhite(true);
    this.power = new MageInt(1);
    this.toughness = new MageInt(2);
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new TapTargetEffect(), new ManaCostsImpl("{W}"));
    ability.addCost(new TapSourceCost());
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.Ability

    super(ownerId, 206, "Elixir of Immortality", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{1}");
    this.expansionSetCode = "M11";
    Costs costs = new CostsImpl();
    costs.add(new GenericManaCost(2));
    costs.add(new TapSourceCost());
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(5), costs);
    ability.addEffect(new ElixerOfImmortalityEffect());
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.Ability

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

    this.addAbility(DeathtouchAbility.getInstance());
    Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), false);
    Target target = new TargetPermanent(filter);
    target.setRequired(true);
    ability.addTarget(target);
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.Ability

  public MystifyingMaze(UUID ownerId) {
    super(ownerId, 226, "Mystifying Maze", Rarity.RARE, new CardType[]{CardType.LAND}, null);
    this.expansionSetCode = "M11";
    this.addAbility(new ColorlessManaAbility());
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MystifyingMazeEffect(), new ManaCostsImpl("{4}"));
    ability.addCost(new TapSourceCost());
    ability.addTarget(new TargetCreaturePermanent(filter));
    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.