Examples of Ability


Examples of mage.abilities.Ability

    this.subtype.add("Aura");

    TargetPermanent auraTarget = new TargetCreaturePermanent();
    this.getSpellAbility().addTarget(auraTarget);
    this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
    Ability ability = new EnchantAbility(auraTarget.getTargetName());
    this.addAbility(ability);
    this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new IceCageEffect()));
    this.addAbility(new IceCageAbility());
  }
View Full Code Here

Examples of mage.abilities.Ability

    super(ownerId, 219, "Voltaic Key", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{1}");
    this.expansionSetCode = "M11";
    Costs costs = new CostsImpl();
    costs.add(new GenericManaCost(1));
    costs.add(new TapSourceCost());
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), costs);
    ability.addTarget(new TargetPermanent(filter));
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.Ability

    this.subtype.add("Elf");
    this.subtype.add("Druid");
    this.color.setGreen(true);
    this.power = new MageInt(1);
    this.toughness = new MageInt(1);
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new TapSourceCost());
    TargetLandPermanent target = new TargetLandPermanent(filter);
    ability.addTarget(target);
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.Ability

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

    this.addAbility(FlashAbility.getInstance());
    this.addAbility(FlyingAbility.getInstance());
    Ability ability = new EntersBattlefieldTriggeredAbility(new DamageMultiEffect(5), false);
    ability.addTarget(new TargetCreatureOrPlayerAmount(5));
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.Ability

    this.subtype.add("Construct");
    this.power = new MageInt(1);
    this.toughness = new MageInt(1);

    this.addAbility(new EntersBattlefieldAbility(new AddPlusOneCountersSourceEffect(3), "with three +1/+1 counters on it"));
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new RemoveCountersSourceCost("+1/+1", 1));
    ability.addTarget(new TargetCreatureOrPlayer());
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.Ability

    this.subtype.add("Wizard");
    this.color.setBlue(true);
    this.power = new MageInt(2);
    this.toughness = new MageInt(2);

    Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect());
    ability.addTarget(new TargetCreaturePermanent());
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.Ability

        this.color.setBlack(true);
        this.subtype.add("Aura");
        TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.UnboostCreature));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new WeaknessEffect()));
    }
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 OakenformEffect()));
    }
View Full Code Here

Examples of mage.abilities.Ability

    this.expansionSetCode = "M10";
    this.color.setBlue(true);
    this.subtype.add("Siren");
    this.power = new MageInt(1);
    this.toughness = new MageInt(1);
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new AlluringSirenEffect(), new TapSourceCost());
    ability.addTarget(new TargetCreaturePermanent(filter));
    this.addAbility(ability);
  }
View Full Code Here

Examples of mage.abilities.Ability

    this.expansionSetCode = "ALA";
    this.color.setWhite(true);
    FilterNonlandPermanent filter = new FilterNonlandPermanent();
    filter.setId(this.getId());
    filter.setNotId(true);
    Ability ability1 = new EntersBattlefieldTriggeredAbility(new ExileTargetEffect(this.getId(), "Oblivion Ring exile"), false);
    ability1.addTarget(new TargetPermanent(filter));
    this.addAbility(ability1);
    Ability ability2 = new LeavesBattlefieldTriggeredAbility(new ReturnFromExileEffect(this.getId(), Zone.BATTLEFIELD), false);
    this.addAbility(ability2);
  }
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.