congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
WitherAbility.getInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
getInstance
method
in
mage.abilities.keyword.WitherAbility

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

origin: magefree/mage

public HarvestGwyllion(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{W/B}{W/B}");
  this.subtype.add(SubType.HAG);
  this.power = new MageInt(2);
  this.toughness = new MageInt(4);
  this.addAbility(WitherAbility.getInstance());
}
origin: magefree/mage

public WildslayerElves(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}");
  this.subtype.add(SubType.ELF);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  this.addAbility(WitherAbility.getInstance());
}
origin: magefree/mage

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

public SickleRipper(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{B}");
  this.subtype.add(SubType.ELEMENTAL);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  this.addAbility(WitherAbility.getInstance());
}
origin: magefree/mage

public RendclawTrow(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{B/G}");
  this.subtype.add(SubType.TROLL);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Wither
  this.addAbility(WitherAbility.getInstance());
  // Persist
  this.addAbility(new PersistAbility());
}
origin: magefree/mage

public JuvenileGloomwidow(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{G}{G}");
  this.subtype.add(SubType.SPIDER);
  this.power = new MageInt(1);
  this.toughness = new MageInt(3);
  this.addAbility(ReachAbility.getInstance());
  this.addAbility(WitherAbility.getInstance());
}
origin: magefree/mage

public BoggartRamGang(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{R/G}{R/G}{R/G}");
  this.subtype.add(SubType.GOBLIN, SubType.WARRIOR);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  this.addAbility(HasteAbility.getInstance());
  this.addAbility(WitherAbility.getInstance());
}
origin: magefree/mage

public RustrazorButcher(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{R}");
  this.subtype.add(SubType.GOBLIN);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(1);
  this.toughness = new MageInt(2);
  this.addAbility(FirstStrikeAbility.getInstance());
  this.addAbility(WitherAbility.getInstance());
}
origin: magefree/mage

public LockjawSnapper(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{4}");
  this.subtype.add(SubType.SCARECROW);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Wither
  this.addAbility(WitherAbility.getInstance());
  
  // When Lockjaw Snapper dies, put a -1/-1 counter on each creature with a -1/-1 counter on it.
  this.addAbility(new DiesTriggeredAbility(new LockjawSnapperEffect()));
  
}
origin: magefree/mage

public CorrosiveMentor(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{B}");
  this.subtype.add(SubType.ELEMENTAL);
  this.subtype.add(SubType.ROGUE);
  this.power = new MageInt(1);
  this.toughness = new MageInt(3);
  // Black creatures you control have wither.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(WitherAbility.getInstance(), Duration.WhileOnBattlefield, filter)));
}
origin: magefree/mage

public OonasGatewarden(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{U/B}");
  this.subtype.add(SubType.FAERIE);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  this.addAbility(DefenderAbility.getInstance());
  this.addAbility(FlyingAbility.getInstance());
  this.addAbility(WitherAbility.getInstance());
}
origin: magefree/mage

public StigmaLasher(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{R}{R}");
  this.subtype.add(SubType.ELEMENTAL);
  this.subtype.add(SubType.SHAMAN);
  
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Wither
  this.addAbility(WitherAbility.getInstance());
  // Whenever Stigma Lasher deals damage to a player, that player can't gain life for the rest of the game.
  this.addAbility(new DealsDamageToAPlayerTriggeredAbility(new StigmaLasherEffect(), false, true));
  
}

origin: magefree/mage

public PunctureBlast(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}");
  this.addAbility(WitherAbility.getInstance());
  this.getSpellAbility().addEffect(new DamageTargetEffect(3));
  this.getSpellAbility().addTarget(new TargetAnyTarget());
  this.getSpellAbility().setRuleAtTheTop(false);
}
origin: magefree/mage

public SlinkingGiant(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}{R}");
  this.subtype.add(SubType.GIANT);
  this.subtype.add(SubType.ROGUE);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  this.addAbility(WitherAbility.getInstance());
  // Whenever Slinking Giant blocks or becomes blocked, it gets -3/-0 until end of turn.
  this.addAbility(new BlocksOrBecomesBlockedTriggeredAbility(new BoostSourceEffect(-3, 0, Duration.EndOfTurn), false));
}
origin: magefree/mage

public WoodlurkerMimic(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{B/G}");
  this.subtype.add(SubType.SHAPESHIFTER);
  this.color.setGreen(true);
  this.color.setBlack(true);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // Whenever you cast a spell that's both black and green, Woodlurker Mimic has base power and toughness 4/5 until end of turn and gains wither until end of turn.
  Ability ability = new SpellCastControllerTriggeredAbility(new SetPowerToughnessSourceEffect(4, 5, Duration.EndOfTurn, SubLayer.SetPT_7b), filter, false, rule);
  ability.addEffect(new GainAbilitySourceEffect(WitherAbility.getInstance(), Duration.EndOfTurn, false, true));
  this.addAbility(ability);
}
origin: magefree/mage

public Cinderbones(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{B}");
  this.subtype.add(SubType.ELEMENTAL);
  this.subtype.add(SubType.SKELETON);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  this.addAbility(WitherAbility.getInstance());
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{1}{B}")));
}
origin: magefree/mage

public FangSkulkin(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{2}");
  this.subtype.add(SubType.SCARECROW);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(WitherAbility.getInstance(), Duration.EndOfTurn), new GenericManaCost(2));
  ability.addTarget(new TargetCreaturePermanent(filterBlackCreature));
  this.addAbility(ability);
}
origin: magefree/mage

public BlightSickle(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
  this.subtype.add(SubType.EQUIPMENT);
  // Equipped creature gets +1/+0 and has wither.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(1, 0)));
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(WitherAbility.getInstance(), AttachmentType.EQUIPMENT)));
  this.addAbility(new EquipAbility(Outcome.BoostCreature, new GenericManaCost(2)));
}
origin: magefree/mage

public BlazethornScarecrow(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{5}");
  this.subtype.add(SubType.SCARECROW);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Blazethorn Scarecrow has haste as long as you control a red creature.
  ContinuousEffect effect = new GainAbilitySourceEffect(HasteAbility.getInstance(), Duration.WhileOnBattlefield);
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(effect, new PermanentsOnTheBattlefieldCondition(filter), rule)));
  
  // Blazethorn Scarecrow has wither as long as you control a green creature.
  ContinuousEffect effect2 = new GainAbilitySourceEffect(WitherAbility.getInstance(), Duration.WhileOnBattlefield);
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(effect2, new PermanentsOnTheBattlefieldCondition(filter2), rule2)));
  
}
origin: magefree/mage

public ThornwatchScarecrow(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{6}");
  this.subtype.add(SubType.SCARECROW);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // Thornwatch Scarecrow has wither as long as you control a green creature.
  ContinuousEffect effect = new GainAbilitySourceEffect(WitherAbility.getInstance(), Duration.WhileOnBattlefield);
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(effect, new PermanentsOnTheBattlefieldCondition(filter), rule)));
  // Thornwatch Scarecrow has vigilance as long as you control a white creature.
  ContinuousEffect effect2 = new GainAbilitySourceEffect(VigilanceAbility.getInstance(), Duration.WhileOnBattlefield);
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(effect2, new PermanentsOnTheBattlefieldCondition(filter2), rule2)));
  
}
mage.abilities.keywordWitherAbilitygetInstance

Popular methods of WitherAbility

  • getId

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • PhpStorm for WordPress
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