congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Heal
Code IndexAdd Tabnine to your IDE (free)

How to use
Heal
in
mage.cards.h

Best Java code snippets using mage.cards.h.Heal (Showing top 3 results out of 315)

origin: magefree/mage

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

public Heal(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{W}");
  // Prevent the next 1 damage that would be dealt to any target this turn.
  // Draw a card at the beginning of the next turn's upkeep.
  this.getSpellAbility().addEffect(new PreventDamageToTargetEffect(Duration.EndOfTurn, 1));
  this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new AtTheBeginOfNextUpkeepDelayedTriggeredAbility(new DrawCardSourceControllerEffect(1)), false));
  this.getSpellAbility().addTarget(new TargetAnyTarget());
  
}
origin: stackoverflow.com

 Mage fireMage = new Mage("Red Niminim");
fireMage.addSpell(new Fireball());
fireMage.addAttribute(Attribute.RESIST_FIRE);
fireMage.addAttribute(Attribute.WEAK_TO_COLD);

Mage iceMage = new Mage("Blue Niminim");
fireMage.addSpell(new Icestorm());
fireMage.addAttribute(Attribute.RESIST_COLD);
fireMage.addAttribute(Attribute.WEAK_TO_FIRE);

Cleric cleric = new Cleric("Friar Joe");
cleric.addSpell(new Heal());

// battle!

fireMage.castSpell("Fireball", cleric);     // 15 damage
fireMage.castSpell("Fireball", iceMage);    // 30 damage
fireMage.castSpell("Fireball", fireMage);   // 0 damage

iceMage.castSpell("Icestorm", cleric);      // 15 damage
iceMage.castSpell("Icestorm", fireMage);    // 30 damage
iceMage.castSpell("Icestorm", iceMage);     // 0 damage

cleric.castSpell("Heal", cleric);           // 15 healed
mage.cards.hHeal

Most used methods

  • <init>
  • getSpellAbility

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Path (java.nio.file)
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Notification (javax.management)
  • JList (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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