Class PoisonAttacker
java.lang.Object
games.stendhal.server.entity.status.StatusAttacker
games.stendhal.server.entity.status.PoisonAttacker
a status attacker for poison
-
Constructor Summary
-
Method Summary
Methods inherited from class games.stendhal.server.entity.status.StatusAttacker
getProbability, getStatus, getStatusName
-
Constructor Details
-
PoisonAttacker
PoisonAttacker- Parameters:
probability
- probabilitypoison
- poison item
-
-
Method Details
-
onAttackAttempt
Description copied from class:StatusAttacker
an attempt to attack the target, it may succeed or not- Overrides:
onAttackAttempt
in classStatusAttacker
- Parameters:
target
- target defenderattacker
- attacker attacker
-
onHit
Description copied from class:StatusAttacker
the target was hit, this may or may not have caused damage- Overrides:
onHit
in classStatusAttacker
- Parameters:
target
- target defenderattacker
- attacker attackerdamage
- amount of damage
-