Class PoisonAttacker

java.lang.Object
games.stendhal.server.entity.status.StatusAttacker
games.stendhal.server.entity.status.PoisonAttacker

public class PoisonAttacker extends StatusAttacker
a status attacker for poison
  • Constructor Details

    • PoisonAttacker

      public PoisonAttacker(int probability, ConsumableItem poison)
      PoisonAttacker
      Parameters:
      probability - probability
      poison - poison item
  • Method Details

    • onAttackAttempt

      public void onAttackAttempt(RPEntity target, RPEntity attacker)
      Description copied from class: StatusAttacker
      an attempt to attack the target, it may succeed or not
      Overrides:
      onAttackAttempt in class StatusAttacker
      Parameters:
      target - target defender
      attacker - attacker attacker
    • onHit

      public void onHit(RPEntity target, RPEntity attacker, int damage)
      Description copied from class: StatusAttacker
      the target was hit, this may or may not have caused damage
      Overrides:
      onHit in class StatusAttacker
      Parameters:
      target - target defender
      attacker - attacker attacker
      damage - amount of damage