From 340ac38bbbe09da728afc277ffbc3a627050cf32 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 31 Oct 2022 13:32:11 -0400 Subject: [PATCH] v1.4.3: fixed crashes in spectral necromancer sprite --- .../actors/mobs/SpectralNecromancer.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/SpectralNecromancer.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/SpectralNecromancer.java index a253a4041..486d79ad5 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/SpectralNecromancer.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/SpectralNecromancer.java @@ -28,18 +28,14 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.Char; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.AllyBuff; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.ChampionEnemy; -import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Corruption; import com.shatteredpixel.shatteredpixeldungeon.effects.Pushing; import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRemoveCurse; -import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene; -import com.shatteredpixel.shatteredpixeldungeon.sprites.NecromancerSprite; import com.shatteredpixel.shatteredpixeldungeon.sprites.SpectralNecromancerSprite; import com.watabou.utils.Bundle; import com.watabou.utils.PathFinder; import com.watabou.utils.Random; import java.util.ArrayList; -import java.util.Collections; public class SpectralNecromancer extends Necromancer { @@ -111,7 +107,7 @@ public class SpectralNecromancer extends Necromancer { //cancel if character cannot be moved if (Char.hasProp(Actor.findChar(summoningPos), Property.IMMOVABLE)){ summoning = false; - ((NecromancerSprite)sprite).finishSummoning(); + ((SpectralNecromancerSprite)sprite).finishSummoning(); spend(TICK); return; }