mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
dcdf1c83a3
@ -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>()
|
||||
|
Loading…
Reference in New Issue
Block a user