Class ModifyHpSpell

All Implemented Interfaces:
EquipListener, Killer, Dateable, Cloneable, Iterable<String>, Serializable

public class ModifyHpSpell extends Spell
A spell to modify an RPEntity's base hp
Author:
madmetzger
  • Constructor Details

    • ModifyHpSpell

      public ModifyHpSpell(String name, Nature nature, int amount, int atk, int cooldown, int def, double lifesteal, int mana, int minimumlevel, int range, int rate, int regen, double modifier)
      Create a new ModifyHpSpell
      Parameters:
      name -
      nature -
      amount -
      atk -
      cooldown -
      def -
      lifesteal -
      mana -
      minimumlevel -
      range -
      rate -
      regen -
      modifier -
    • ModifyHpSpell

      public ModifyHpSpell(RPObject object)
      Create a new Spell from a RPObject
      Parameters:
      object -
  • Method Details

    • doEffects

      protected void doEffects(Player caster, Entity target)
      Description copied from class: Spell
      Provides the concrete behaviour of each concrete spell, i.e. a healing effect should done here
      Specified by:
      doEffects in class Spell