Class HealingEffect

java.lang.Object
games.stendhal.server.entity.spell.effect.AbstractEffect
games.stendhal.server.entity.spell.effect.HealingEffect
All Implemented Interfaces:
TurnListener, Effect

public class HealingEffect extends AbstractEffect implements TurnListener
Effect for healing a player
Author:
madmetzger
  • Constructor Details

    • HealingEffect

      public HealingEffect(Nature nature, int amount, int atk, int def, double lifesteal, int rate, int regen, double modifier)
      Creates a new HealingEffect.
      Parameters:
      nature -
      amount -
      atk -
      def -
      lifesteal -
      rate -
      regen -
      modifier -
  • Method Details

    • act

      public void act(Player caster, Entity target)
      Description copied from interface: Effect
      applies the effect
      Specified by:
      act in interface Effect
    • onTurnReached

      public void onTurnReached(int currentTurn)
      Description copied from interface: TurnListener
      This method is called when the turn number is reached.
      Specified by:
      onTurnReached in interface TurnListener
      Parameters:
      currentTurn - current turn number