Fixes a runtime and mindbreaker

This commit is contained in:
Archie
2021-06-29 23:25:08 -03:00
parent 5c893a6db5
commit b30220c48f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
Show()
/obj/effect/hallucination/simple/Destroy()
if(target.client)
if(target && target.client)
target.client.images.Remove(current_image)
active = FALSE
return ..()
@@ -200,7 +200,8 @@
pH = 11
/datum/reagent/toxin/mindbreaker/on_mob_life(mob/living/carbon/M)
M.hallucination += 5
if(!M.has_quirk(/datum/quirk/insanity))
M.hallucination += 5
return ..()
/datum/reagent/toxin/plantbgone