Fix for runtime:

The following runtime has occured 99 time(s).
runtime error: Cannot read null.stat
proc name: process (/datum/disease/alien_embryo/process)
  source file: alien_embryo.dm,9
  usr: null
  src: Unidentified Foreign Body (/datum/disease/alien_embryo)

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4385 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
elly1989@rocketmail.com
2012-08-12 22:43:39 +00:00
parent 76440d9acd
commit 2485d4ca0c

View File

@@ -6,12 +6,12 @@
if(holder == affected_mob)
stage_act()
if(affected_mob.stat == DEAD)
if(prob(50))
if(--longevity<=0)
cure(0)
if(!affected_mob) //the virus is in inanimate obj
if(affected_mob)
if(affected_mob.stat == DEAD)
if(prob(50))
if(--longevity<=0)
cure(0)
else //the virus is in inanimate obj
cure(0)
return