diff --git a/server/src/events/entity_manipulation.rs b/server/src/events/entity_manipulation.rs index eabde86f76..a2e414a463 100644 --- a/server/src/events/entity_manipulation.rs +++ b/server/src/events/entity_manipulation.rs @@ -959,7 +959,10 @@ pub fn handle_buff(server: &mut Server, entity: EcsEntity, buff_change: buff::Bu if !bodies .get(entity) .map_or(false, |body| body.immune_to(new_buff.kind)) - && ecs.is_alive(entity) + && ecs + .read_component::() + .get(entity) + .map_or(true, |h| !h.is_dead) { buffs.insert(new_buff); }