fix combo not reset at respawn

This commit is contained in:
Swrup 2021-07-04 17:14:40 +02:00
parent fca8227db8
commit 971dd9059c

View File

@ -662,6 +662,11 @@ pub fn handle_respawn(server: &Server, entity: EcsEntity) {
.write_storage::<comp::Health>()
.get_mut(entity)
.map(|mut health| health.revive());
state
.ecs()
.write_storage::<comp::Combo>()
.get_mut(entity)
.map(|mut combo| combo.reset());
state
.ecs()
.write_storage::<comp::Pos>()