diff --git a/code/modules/flufftext/Hallucination.dm b/code/modules/flufftext/Hallucination.dm index a73557def85..32b72f045fc 100644 --- a/code/modules/flufftext/Hallucination.dm +++ b/code/modules/flufftext/Hallucination.dm @@ -22,7 +22,7 @@ mob/living/carbon/var mob/living/carbon/proc/handle_hallucinations() if(handling_hal) return handling_hal = 1 - while(hallucination > 20) + while(client && hallucination > 20) sleep(rand(200,500)/(hallucination/25)) var/halpick = rand(1,100) switch(halpick) @@ -408,4 +408,4 @@ var/list/non_fakeattack_weapons = list(/obj/item/weapon/gun/projectile, /obj/ite target << F.up */ - F.updateimage() \ No newline at end of file + F.updateimage()