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:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user