Normalize mob visual state before join/state payloads and clarify client animation handling
- Add server-side payload-time normalization to prevent alive mobs from being sent with dead/hurt animations - Enforce dead state/death animation payload consistency for non-alive mobs - Apply normalization in both dungeon enter flows and recurring dungeon state sends - Update pending-clientChanges.md: client must treat currentAnimation as authoritative and gate loot prompt by hasLoot
This commit is contained in:
@@ -333,6 +333,7 @@ public sealed partial class DungeonHandler
|
||||
|
||||
instance.Simulation.Players[session.CharacterId] = player;
|
||||
instance.LastPlayerActivity = DateTime.UtcNow;
|
||||
NormalizeMobVisualStateForPayload(instance.Simulation);
|
||||
|
||||
session.State = PlayerState.InDungeon;
|
||||
session.CurrentDungeonId = instance.Id;
|
||||
|
||||
Reference in New Issue
Block a user