forked from 2009Scape/Server
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:
parent
325b8f6f20
commit
974c44a041
1 changed files with 2 additions and 0 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue