Skip to content

Commit

Permalink
Status effects get deleted along with their owners (#13652)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmixo authored Jul 31, 2023
1 parent cdab55c commit e6019ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/mob/living/living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
RegisterSignal(src, COMSIG_AURA_FINISHED, PROC_REF(remove_emitted_auras))

/mob/living/Destroy()
for(var/datum/status_effect/effect AS in status_effects)
qdel(effect)
for(var/i in embedded_objects)
var/obj/item/embedded = i
if(embedded.embedding.embedded_flags & EMBEDDED_DEL_ON_HOLDER_DEL)
Expand Down

0 comments on commit e6019ec

Please sign in to comment.