v0.7.5a: added a safety check to necromancer sprites
This commit is contained in:
+7
-3
@@ -63,10 +63,14 @@ 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 (((Necromancer) ch).summoning){
|
if (ch instanceof Necromancer){
|
||||||
charge();
|
if (((Necromancer) ch).summoning){
|
||||||
|
charge();
|
||||||
|
} else {
|
||||||
|
((Necromancer)ch).onZapComplete();
|
||||||
|
idle();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
((Necromancer)ch).onZapComplete();
|
|
||||||
idle();
|
idle();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user