congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
UndyingAbility
Code IndexAdd Tabnine to your IDE (free)

How to use
UndyingAbility
in
mage.abilities.keyword

Best Java code snippets using mage.abilities.keyword.UndyingAbility (Showing top 20 results out of 315)

origin: magefree/mage

@Override
public DiesTriggeredAbility copy() {
  return new UndyingAbility(this);
}
origin: magefree/mage

public UndyingAbility() {
  super(new UndyingEffect());
  this.addEffect(new ReturnSourceFromGraveyardToBattlefieldEffect(false, true));
}
origin: magefree/mage

public UndyingEvil(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{B}");
  // Target creature gains undying until end of turn.
  this.getSpellAbility().addEffect(new GainAbilityTargetEffect(new UndyingAbility(), Duration.EndOfTurn));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}
origin: magefree/mage

public ButcherGhoul(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{B}");
  this.subtype.add(SubType.ZOMBIE);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Undying (When this creature dies, if it had no +1/+1 counters on it, return it to the battlefield under its owner's control with a +1/+1 counter on it.)
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public YoungWolf(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{G}");
  this.subtype.add(SubType.WOLF);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Undying
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public NearheathStalker(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{R}");
  this.subtype.add(SubType.VAMPIRE);
  this.subtype.add(SubType.ROGUE);
  this.power = new MageInt(4);
  this.toughness = new MageInt(1);
  // Undying
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public TreacherousPitDweller(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}{B}");
  this.subtype.add(SubType.DEMON);
  this.power = new MageInt(4);
  this.toughness = new MageInt(3);
  // Undying
  this.addAbility(new UndyingAbility());
  // When Treacherous Pit-Dweller enters the battlefield from a graveyard, target opponent gains control of it.
  this.addAbility(new TreacherousPitDwellerTriggeredAbility());
}
origin: magefree/mage

public StranglerootGeist(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{G}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  this.addAbility(HasteAbility.getInstance());
  // Undying
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public MikaeusTheUnhallowed(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}{B}{B}");
  addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.ZOMBIE);
  this.subtype.add(SubType.CLERIC);
  this.power = new MageInt(5);
  this.toughness = new MageInt(5);
  this.addAbility(IntimidateAbility.getInstance());
  // Whenever a Human deals damage to you, destroy it.
  this.addAbility(new MikaeusTheUnhallowedAbility());
  // Other non-Human creatures you control get +1/+1 and have undying.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter, true)));
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(new UndyingAbility(), Duration.WhileOnBattlefield, filter, true)));
}
origin: magefree/mage

public VengefulVampire(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{B}{B}");
  this.subtype.add(SubType.VAMPIRE);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  this.addAbility(FlyingAbility.getInstance());
  // Undying
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public SightlessGhoul(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}");
  this.subtype.add(SubType.ZOMBIE);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Sightless Ghoul can't block.
  this.addAbility(new CantBlockAbility());
  // Undying
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public HoundOfGriselbrand(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}{R}");
  this.subtype.add(SubType.ELEMENTAL);
  this.subtype.add(SubType.HOUND);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  this.addAbility(DoubleStrikeAbility.getInstance());
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public StormboundGeist(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{U}{U}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  this.addAbility(FlyingAbility.getInstance());
  // Stormbound Geist can block only creatures with flying.
  this.addAbility(new CanBlockOnlyFlyingAbility());
  // Undying
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public FlayerOfTheHatebound(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{R}");
  this.subtype.add(SubType.DEVIL);
  this.power = new MageInt(4);
  this.toughness = new MageInt(2);
  this.addAbility(new UndyingAbility());
  // Whenever Flayer of the Hatebound or another creature enters the battlefield from your graveyard, that creature deals damage equal to its power to any target.
  Ability ability = new FlayerTriggeredAbility();
  ability.addTarget(new TargetAnyTarget());
  this.addAbility(ability);
}
origin: magefree/mage

public Vorapede(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}{G}{G}");
  this.subtype.add(SubType.INSECT);
  this.power = new MageInt(5);
  this.toughness = new MageInt(4);
  this.addAbility(VigilanceAbility.getInstance());
  this.addAbility(TrampleAbility.getInstance());
  // Undying
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public Howlgeist(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{G}");
  this.subtype.add(SubType.SPIRIT);
  this.subtype.add(SubType.WOLF);
  this.power = new MageInt(4);
  this.toughness = new MageInt(2);
  // Creatures with power less than Howlgeist's power can't block it.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedByCreaturesWithLessPowerEffect()));
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public RelentlessSkaabs(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}{U}");
  this.subtype.add(SubType.ZOMBIE);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // As an additional cost to cast Relentless Skaabs, exile a creature card from your graveyard.
  this.getSpellAbility().addCost(new ExileFromGraveCost(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD)));
  // Undying
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public PyreheartWolf(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}");
  this.subtype.add(SubType.WOLF);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Whenever Pyreheart Wolf attacks, creatures you control gain menace until end of turn. (They can't be blocked except by two or more creatures.)
  this.addAbility(new AttacksTriggeredAbility(new GainAbilityAllEffect(new MenaceAbility(), Duration.EndOfTurn, filter), false));
  // Undying (When this creature dies, if it had no +1/+1 counters on it, return it to the battlefield under its owner's control with a +1/+1 counter on it.)
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public EvernightShade(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}");
  this.subtype.add(SubType.SHADE);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // {B}: Evernight Shade gets +1/+1 until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{B}")));
  this.addAbility(new UndyingAbility());
}
origin: magefree/mage

public GeralfsMindcrusher(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{U}{U}");
  this.subtype.add(SubType.ZOMBIE);
  this.subtype.add(SubType.HORROR);
  this.power = new MageInt(5);
  this.toughness = new MageInt(5);
  // When Geralf's Mindcrusher enters the battlefield, target player puts the top five cards of their library into their graveyard.
  Ability ability = new EntersBattlefieldTriggeredAbility(new PutLibraryIntoGraveTargetEffect(5));
  ability.addTarget(new TargetPlayer());
  this.addAbility(ability);
  // Undying
  this.addAbility(new UndyingAbility());
}
mage.abilities.keywordUndyingAbility

Most used methods

  • <init>
  • addEffect

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Collectors (java.util.stream)
  • Table (org.hibernate.mapping)
    A relational table
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now