From cdd5a2988e496c1fdcb3ddf92296a6f9c9c6bf23 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 16 Oct 2019 16:49:33 -0400 Subject: [PATCH] v0.7.5c: added some safety checks to necromancer zapping --- .../shatteredpixeldungeon/actors/mobs/Necromancer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Necromancer.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Necromancer.java index 7af1f1de9..d45e5bb72 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Necromancer.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Necromancer.java @@ -154,7 +154,7 @@ public class Necromancer extends Mob { } public void onZapComplete(){ - if (mySkeleton == null){ + if (mySkeleton == null || mySkeleton.sprite == null || !mySkeleton.isAlive()){ return; }