Merge branch 'swrup/fix_combo_decay_on_death' into 'master'

fix combo not reset at respawn

See merge request veloren/veloren!2553
This commit is contained in:
Samuel Keiffer 2021-07-05 03:56:24 +00:00
commit dcdf1c83a3

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