From 974c44a04166a66b0cd3e258bde97dd2ce541261 Mon Sep 17 00:00:00 2001 From: randy Date: Sat, 9 Nov 2024 20:29:01 -0700 Subject: [PATCH] Remove staff check when autocasting Slayer Dart and Claws of Guthix This should have no effect on the slayer dart spell, but does allow Claws of Guthix to be autocast with the Guthix Staff and not just the Void Mace. --- .../src/main/core/game/node/entity/combat/spell/MagicSpell.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Server/src/main/core/game/node/entity/combat/spell/MagicSpell.java b/Server/src/main/core/game/node/entity/combat/spell/MagicSpell.java index 12059a76c..cf003c648 100644 --- a/Server/src/main/core/game/node/entity/combat/spell/MagicSpell.java +++ b/Server/src/main/core/game/node/entity/combat/spell/MagicSpell.java @@ -203,6 +203,7 @@ public abstract class MagicSpell implements Plugin { } if (caster instanceof Player) { CombatSpell spell = ((Player) caster).getProperties().getAutocastSpell(); + /* Snowscape custom. Removing this allows guthix staff to autocast claws of guthix. if (spell != null) { boolean slayer = ((Player) caster).getEquipment().get(3).getName().contains("layer's staff"); boolean voidKnight = ((Player) caster).getEquipment().get(3).getName().contains("knight mace"); @@ -211,6 +212,7 @@ public abstract class MagicSpell implements Plugin { return false; } } + */ } if((spellId == 12 || spellId == 30 || spellId == 56) && caster instanceof Player){ if (caster.getAttribute("entangleDelay", 0) > GameWorld.getTicks()) {