Package mage.abilities

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


    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

        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

        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

    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

    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

    this.subtype.add("Warrior");
    this.color.setRed(true);
    this.power = new MageInt(4);
    this.toughness = new MageInt(4);

    Ability ability = new AttacksTriggeredAbility(new CyclopsGladiatorEffect(), true);
    this.addAbility(ability);
  }
View Full Code Here

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

    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

    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 QuagSicknessEffect()));

  }
View Full Code Here

    this.subtype.add("Zombie");
    this.color.setBlack(true);
    this.power = new MageInt(2);
    this.toughness = new MageInt(3);

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

TOP

Related Classes of mage.abilities.Ability

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.