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.
This commit is contained in:
randy 2024-11-09 20:29:01 -07:00
parent 325b8f6f20
commit 974c44a041

View file

@ -203,6 +203,7 @@ public abstract class MagicSpell implements Plugin<SpellType> {
}
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<SpellType> {
return false;
}
}
*/
}
if((spellId == 12 || spellId == 30 || spellId == 56) && caster instanceof Player){
if (caster.getAttribute("entangleDelay", 0) > GameWorld.getTicks()) {