Spinolyp poison now only applies to range attacks

This commit is contained in:
oftheshire
2026-04-19 09:59:49 +00:00
committed by Ryan
parent 8397452071
commit 2806c08f7b
@@ -146,7 +146,7 @@ public final class SpinolypNPC extends AbstractNPC {
super.impact(entity, victim, state); super.impact(entity, victim, state);
if (super.getType() == CombatStyle.MAGIC && state.getEstimatedHit() > 0) { if (super.getType() == CombatStyle.MAGIC && state.getEstimatedHit() > 0) {
victim.getSkills().decrementPrayerPoints(1); victim.getSkills().decrementPrayerPoints(1);
} else { } else if (super.getType() == CombatStyle.RANGE && state.getEstimatedHit() > 0) {
if (RandomFunction.random(20) == 5) { if (RandomFunction.random(20) == 5) {
applyPoison(victim, entity, 30); applyPoison(victim, entity, 30);
} }