mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user