Merge pull request #1338 from ArchieBeepBoop/something-about-the-insanity-trait-

Fixes a runtime with hallucinations and a thing about mindbreaker
This commit is contained in:
Dahlular
2021-07-03 23:35:39 -06:00
committed by GitHub
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