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