fix combo not reset at respawn

This commit is contained in:
Swrup 2021-07-04 17:14:40 +02:00
parent 0ca636612d
commit d9d9bc90e4

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>()