The radioactive mutation now ensures it has an owner before modifying the radioactivity (#89805)

## About The Pull Request
https://github.com/Monkestation/Monkestation2.0/pull/5690 exposed the
fact that `/datum/mutation/human/radioactive/modify()` assumes we have
an owner.

However, the parent proc, `/datum/mutation/human/modify()`, does not
make this assumption - and as such,
`/datum/mutation/human/radioactive/modify()` shouldn't either.

This PR modifies `/datum/mutation/human/radioactive/modify()` to check
if our `owner` variable is set (and valid!) before applying the
radioactivity changes.
This commit is contained in:
MichiRecRoom
2025-03-12 17:18:44 -04:00
committed by Roxy
parent 417277a56a
commit 66c926b540
+2 -1
View File
@@ -24,7 +24,8 @@
/datum/mutation/human/radioactive/modify()
. = ..()
make_radioactive(owner)
if(!QDELETED(owner))
make_radioactive(owner)
/**
* Makes the passed mob radioactive, or if they're already radioactive,