From 40a495fcdc68c50d016355ac67a16ad8696e4226 Mon Sep 17 00:00:00 2001 From: Sam Marder Date: Sat, 30 May 2026 13:44:43 +0000 Subject: [PATCH] Fixed enchanted bolts not working against monsters that cannot be slayer tasks --- .../main/core/game/node/entity/combat/equipment/BoltEffect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/core/game/node/entity/combat/equipment/BoltEffect.java b/Server/src/main/core/game/node/entity/combat/equipment/BoltEffect.java index 06ab0edf2..71d26d8b6 100644 --- a/Server/src/main/core/game/node/entity/combat/equipment/BoltEffect.java +++ b/Server/src/main/core/game/node/entity/combat/equipment/BoltEffect.java @@ -239,7 +239,7 @@ public enum BoltEffect { // and should be considered a TODO: temporary abuse prevention measure (bolt effect on slayer monsters) boolean rollSuccess = RandomFunction.random(13) == 5; if (!(state.getVictim() instanceof NPC)) return rollSuccess; - if (!(state.getAttacker() instanceof Player) && ((NPC) state.getVictim()).getTask() == null) return rollSuccess; + if (!(state.getAttacker() instanceof Player) || ((NPC) state.getVictim()).getTask() == null) return rollSuccess; if (state.getVictim().asNpc().getTask().levelReq > state.getAttacker().asPlayer().getSkills().getLevel(Skills.SLAYER)) return false; return rollSuccess; }