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 f8a937b2a..aee10f6c9 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 @@ -72,7 +72,7 @@ public class Necromancer extends Mob { protected boolean act() { if (summoning && state != HUNTING){ summoning = false; - updateSpriteState(); + if (sprite instanceof NecromancerSprite) ((NecromancerSprite) sprite).cancelSummoning(); } return super.act(); } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/NecromancerSprite.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/NecromancerSprite.java index 23d4ec924..797931e74 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/NecromancerSprite.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/NecromancerSprite.java @@ -94,6 +94,12 @@ public class NecromancerSprite extends MobSprite { } } + public void cancelSummoning(){ + if (summoningBones != null){ + summoningBones.on = false; + } + } + public void finishSummoning(){ if (summoningBones.visible) { Sample.INSTANCE.play(Assets.Sounds.BONES);