Fixed incorrect autocast animation for the three god spells

Also future-proofed by adding animation for Iban's blast, even though the staff is not obtainable yet and the spell can't normally be autocast.
This commit is contained in:
randy 2024-11-09 21:47:02 -07:00
parent 974c44a041
commit 98e8cd4592

View file

@ -156,10 +156,20 @@ public abstract class CombatSpell extends MagicSpell {
}
if (entity.getProperties().getAutocastSpell() == this && (entity instanceof Player || animation == null)) {
Player p = entity.asPlayer();
if (p.getProperties().getAutocastSpell().getSpellId() == 31) {
entity.animate(new Animation(1576));
} else {
entity.animate(AUTOCAST_ANIMATION);
switch(p.getProperties().getAutocastSpell().getSpellId()) {
case 31:
entity.animate(new Animation(1576, Priority.HIGH));
break;
case 41:
case 42:
case 43:
entity.animate(new Animation(811, Priority.HIGH));
break;
case 29:
entity.animate(new Animation(708, Priority.HIGH));
break;
default:
entity.animate(AUTOCAST_ANIMATION);
}
} else {
if (entity instanceof NPC) {