Keep mob corpses persistent and enforce death animation state

- Stop automatic corpse removal after loot is emptied; corpses now remain in world

- On all mob death paths, set dead state plus death animation (death_[dir]) and clear combat/cast targeting

- Include dead mobs in spatial state feed so corpses do not disappear from clients

- Add mob currentAnimation/hasLoot in payload and reject loot interaction when corpse has no loot
This commit is contained in:
dingo
2026-02-09 09:24:14 -05:00
parent d8e4e7430b
commit 5d3de08037
5 changed files with 40 additions and 25 deletions
+4
View File
@@ -861,6 +861,10 @@ public static class MobAI
mob.Health = 0;
mob.IsAlive = false;
mob.State = MobState.Dead;
mob.TargetId = null;
mob.CastingAbility = null;
mob.CastTimeRemaining = 0;
mob.CurrentAnimation = mob.GetDirectionalAnimation("death");
}
}
}