mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user