gcDestroyed

This commit is contained in:
Adrian Dias
2019-10-14 12:13:43 -03:00
parent 01d78b2cf4
commit e3b9dc24ac
2 changed files with 4 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ mob/living/carbon/proc/handle_hallucinations()
while(hallucination > 20)
sleep(max(MIN_HAL_SLEEP,(rand(200,500)/(hallucination/25))))
if(!loc || !reagents)
if(gcDestroyed)
return
if((src.reagents.has_reagent(CITALOPRAM) && prob(30)) || src.reagents.has_reagent(PAROXETINE))