Fixed adminghosts not being able to become aliens (they still won't become aliens if they've just left their body for a while).

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@745 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
uporotiy
2010-12-31 23:28:18 +00:00
parent ae98d736d0
commit 9213a65a44

View File

@@ -63,8 +63,12 @@
var/list/candidates = list() // Picks a random ghost in the world to shove in the larva -- TLE
for(var/mob/dead/observer/G in world)
if(G.client)
if(!G.client.holder && ((G.client.inactivity/10)/60) <= 5)
candidates.Add(G)
if(((G.client.inactivity/10)/60) <= 5)
if(G.corpse) //hopefully will make adminaliums possible --Urist
if(G.corpse.stat==2)
candidates.Add(G)
if(!G.corpse) //hopefully will make adminaliums possible --Urist
candidates.Add(G)
if(candidates.len)
var/mob/dead/observer/G = pick(candidates)
G.client.mob = new/mob/living/carbon/alien/larva(affected_mob.loc)