Ensures people do not spasm out of closed chambers (#43198)

* ensures people do not spasm out of chambers

* Apply review

Co-Authored-By: PKPenguin321 <pkpenguin321.git@gmail.com>
This commit is contained in:
PKPenguin321
2019-03-20 11:35:30 -07:00
committed by yogstation13-bot
parent e29f504096
commit 1fa84d7f8c

View File

@@ -655,7 +655,7 @@
if(prob(15)) if(prob(15))
switch(rand(1,5)) switch(rand(1,5))
if(1) if(1)
if(owner.mobility_flags & MOBILITY_MOVE) if((owner.mobility_flags & MOBILITY_MOVE) && isturf(owner.loc))
to_chat(owner, "<span class='warning'>Your leg spasms!</span>") to_chat(owner, "<span class='warning'>Your leg spasms!</span>")
step(owner, pick(GLOB.cardinals)) step(owner, pick(GLOB.cardinals))
if(2) if(2)