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