v0.7.5a: added a safety check to necromancer sprites

This commit is contained in:
Evan Debenham 2019-10-04 14:55:53 -04:00
parent e5d53d2ddb
commit a6c48b25fc

View File

@ -63,12 +63,16 @@ public class NecromancerSprite extends MobSprite {
public void onComplete(Animation anim) { public void onComplete(Animation anim) {
super.onComplete(anim); super.onComplete(anim);
if (anim == zap){ if (anim == zap){
if (ch instanceof Necromancer){
if (((Necromancer) ch).summoning){ if (((Necromancer) ch).summoning){
charge(); charge();
} else { } else {
((Necromancer)ch).onZapComplete(); ((Necromancer)ch).onZapComplete();
idle(); idle();
} }
} else {
idle();
}
} }
} }
} }