diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java index 387d3002c..7791a594e 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java @@ -294,6 +294,9 @@ public class Ghoul extends Mob { Dungeon.level.occupyCell( ghoul ); ghoul.sprite.idle(); ghoul.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(Math.round(ghoul.HT/10f)), FloatingText.HEALING); + if (ghoul.enemy != null && ghoul.enemy.alignment == ghoul.alignment){ + ghoul.enemy = null; //reset enemy + } super.detach(); return true; }