v3.2.5: fixed effects like aggro not clearing from downed ghouls

This commit is contained in:
Evan Debenham
2025-09-24 17:04:58 -04:00
parent 594c364eec
commit e56e2f6a27

View File

@@ -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;
}