AI now handles EMP-stun like other creatures do in their life.dm file

Previously AI would be stunned indefinitely after being hit with an EMP-blast. This would prevent emergency shutters from being operated.
The stun status is now adjusted down in the Life()-proc like is done in the base living.dm, which the AI living.dm does not ..() call.
This commit is contained in:
PsiOmega
2014-06-27 21:24:01 +02:00
parent 34137c5550
commit 972bbac033

View File

@@ -35,6 +35,10 @@
// Gain Power
adjustOxyLoss(-1)
// Handle EMP-stun
if(stunned)
AdjustStunned(-1)
//stage = 1
//if (istype(src, /mob/living/silicon/ai)) // Are we not sure what we are?
var/blind = 0