[MIRROR] Fixes swarm enemies behaving like walls when dead (#10356)

Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-03-11 15:22:16 -07:00
committed by GitHub
parent c97dd30969
commit f730089c46
9 changed files with 26 additions and 16 deletions

View File

@@ -156,7 +156,7 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable
return FALSE
/obj/item/nif/proc/quick_install(var/mob/living/carbon/human/H)
if(!H) //Or letting them get deleted
if(QDELETED(H)) //Or letting them get deleted
return
if(H.mind)
owner = H.mind.name

View File

@@ -39,9 +39,9 @@
var/obj/item/nif/nif
var/datum/nifsoft/commlink/nifsoft
/obj/item/communicator/commlink/New(var/newloc,var/soft)
..()
nif = newloc
/obj/item/communicator/commlink/Initialize(mapload, var/soft)
. = ..()
nif = loc
nifsoft = soft
/obj/item/communicator/commlink/Destroy()