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

How to use
mage.abilities.keyword.DevourAbility
constructor

Best Java code snippets using mage.abilities.keyword.DevourAbility.<init> (Showing top 17 results out of 315)

origin: magefree/mage

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

public GorgerWurm(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{R}{G}");
  this.subtype.add(SubType.WURM);
  this.power = new MageInt(5);
  this.toughness = new MageInt(5);
  // Devour 1 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourEffect.DevourFactor.Devour1));
}
origin: magefree/mage

public ThunderThrashElder(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}");
  this.subtype.add(SubType.VIASHINO);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Devour 3 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourFactor.Devour3));
}
origin: magefree/mage

public ThromokTheInsatiable(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{R}{G}");
  addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.HELLION);
  this.power = new MageInt(0);
  this.toughness = new MageInt(0);
  // Devour X, where X is the number of creatures devoured this way (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with X +1/+1 counters on it for each of those creatures.)
  this.addAbility(new DevourAbility(DevourFactor.DevourX));
}
origin: magefree/mage

public DragonBroodmotherDragonToken() {
  super("Dragon", "1/1 red and green Dragon creature token with flying and devour 2");
  cardType.add(CardType.CREATURE);
  color.setGreen(true);
  color.setRed(true);
  subtype.add(SubType.DRAGON);
  power = new MageInt(1);
  toughness = new MageInt(1);
  addAbility(FlyingAbility.getInstance());
  addAbility(new DevourAbility(DevourEffect.DevourFactor.Devour2));
}
origin: magefree/mage

public GluttonousSlime(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}");
  this.subtype.add(SubType.OOZE);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Flash
  this.addAbility(FlashAbility.getInstance());
  // Devour 1 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourFactor.Devour1));
}
origin: magefree/mage

public BloodsporeThrinax(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}{G}");
  this.subtype.add(SubType.LIZARD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Devour 1
  this.addAbility(new DevourAbility(DevourEffect.DevourFactor.Devour1));
  
  // Each other creature you control enters the battlefield with an additional X +1/+1 counters on it, where X is the number of +1/+1 counters on Bloodspire Thrinax.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BloodsporeThrinaxEntersBattlefieldEffect()));
}
origin: magefree/mage

public PredatorDragon(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{R}{R}{R}");
  this.subtype.add(SubType.DRAGON);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // Flying, haste
  this.addAbility(FlyingAbility.getInstance());
  this.addAbility(HasteAbility.getInstance());
  // Devour 2 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourFactor.Devour2));
}
origin: magefree/mage

public Skullmulcher(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}");
  this.subtype.add(SubType.ELEMENTAL);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Devour 1 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourFactor.Devour1));
  // When Skullmulcher enters the battlefield, draw a card for each creature it devoured.
  this.addAbility(new EntersBattlefieldTriggeredAbility(
      new DrawCardSourceControllerEffect(new DevouredCreaturesCount()),false));
}
origin: magefree/mage

public CalderaHellion(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{R}{R}");
  this.subtype.add(SubType.HELLION);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Devour 1 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourFactor.Devour1));
  // When Caldera Hellion enters the battlefield, it deals 3 damage to each creature.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new DamageAllEffect(3, "it", new FilterCreaturePermanent())));
}
origin: magefree/mage

public MarrowChomper(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}{G}");
  this.subtype.add(SubType.ZOMBIE);
  this.subtype.add(SubType.LIZARD);
  
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Devour 2 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourEffect.DevourFactor.Devour2));
  // When Marrow Chomper enters the battlefield, you gain 2 life for each creature it devoured.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(new DevouredCreaturesCount(2))));
}
origin: magefree/mage

public ThornThrashViashino(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{R}");
  this.subtype.add(SubType.VIASHINO);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Devour 2 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourFactor.Devour2));
  // {G}: Thorn-Thrash Viashino gains trample until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn),new ManaCostsImpl("{G}")));
}
origin: magefree/mage

public TarFiend(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{B}");
  this.subtype.add(SubType.ELEMENTAL);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // Devour 2 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourFactor.Devour2));
  // When Tar Fiend enters the battlefield, target player discards a card for each creature it devoured.
  Ability ability = new EntersBattlefieldTriggeredAbility(new DiscardTargetEffect(new DevouredCreaturesCount()));
  ability.addTarget(new TargetPlayer());
  this.addAbility(ability);
}
origin: magefree/mage

public Mycoloth(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}{G}");
  this.subtype.add(SubType.FUNGUS);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // Devour 2 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourFactor.Devour2));
  // At the beginning of your upkeep, create a 1/1 green Saproling creature token for each +1/+1 counter on Mycoloth.
  this.addAbility(new BeginningOfUpkeepTriggeredAbility(
      new CreateTokenEffect(new SaprolingToken(),new CountersSourceCount(CounterType.P1P1)),
      TargetController.YOU,
      false
    ));
}
origin: magefree/mage

public PreyseizerDragon(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{R}{R}");
  this.subtype.add(SubType.DRAGON);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // Devour 2 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourFactor.Devour2));
  // Whenever Preyseizer Dragon attacks, it deals damage to any target equal to the number of +1/+1 counters on Preyseizer Dragon.
  Ability ability = new AttacksTriggeredAbility(new DamageTargetEffect(new CountersSourceCount(CounterType.P1P1)), false);
  ability.addTarget(new TargetAnyTarget());
  this.addAbility(ability);
}
origin: magefree/mage

public VoraciousDragon(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{R}{R}");
  this.subtype.add(SubType.DRAGON);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // Devour 1 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourFactor.Devour1));
  // When Voracious Dragon enters the battlefield, it deals damage to any target equal to twice the number of Goblins it devoured.
  Ability ability = new EntersBattlefieldTriggeredAbility(new DamageTargetEffect(new TwiceDevouredGoblins(), "it"), false);
  ability.addTarget(new TargetAnyTarget());
  this.addAbility(ability);
}
origin: magefree/mage

public HellkiteHatchling(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}{G}");
  this.subtype.add(SubType.DRAGON);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Devour 1 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with that many +1/+1 counters on it.)
  this.addAbility(new DevourAbility(DevourFactor.Devour1));
  // Hellkite Hatchling has flying and trample if it devoured a creature.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect( 
      new GainAbilitySourceEffect(FlyingAbility.getInstance()),
      new DevouredCreaturesCondition(ComparisonType.MORE_THAN, 0),
      "{this} has flying if it devoured a creature")));
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(
      new GainAbilitySourceEffect(TrampleAbility.getInstance()),
      new DevouredCreaturesCondition(ComparisonType.MORE_THAN, 0),
      "{this} has trample if it devoured a creature")));
}
mage.abilities.keywordDevourAbility<init>

Popular methods of DevourAbility

    Popular in Java

    • Making http requests using okhttp
    • scheduleAtFixedRate (Timer)
    • getContentResolver (Context)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • ArrayList (java.util)
      ArrayList is an implementation of List, backed by an array. All optional operations including adding
    • NoSuchElementException (java.util)
      Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
    • ResourceBundle (java.util)
      ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
    • JOptionPane (javax.swing)
    • Join (org.hibernate.mapping)
    • Reflections (org.reflections)
      Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
    • Top 17 Plugins for Android Studio
    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