From 971dd9059c73df02f6f27780c135024f4f3aef05 Mon Sep 17 00:00:00 2001 From: Swrup Date: Sun, 4 Jul 2021 17:14:40 +0200 Subject: [PATCH] fix combo not reset at respawn --- server/src/events/entity_manipulation.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/events/entity_manipulation.rs b/server/src/events/entity_manipulation.rs index 73acb787e3..21767e747a 100644 --- a/server/src/events/entity_manipulation.rs +++ b/server/src/events/entity_manipulation.rs @@ -662,6 +662,11 @@ pub fn handle_respawn(server: &Server, entity: EcsEntity) { .write_storage::() .get_mut(entity) .map(|mut health| health.revive()); + state + .ecs() + .write_storage::() + .get_mut(entity) + .map(|mut combo| combo.reset()); state .ecs() .write_storage::()