mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 14:47:50 +01:00
[MIRROR] Patch for fake attackers crashing MC (#11030)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
co-authored by
Will
parent
25f88f3dd4
commit
6977811626
@@ -127,11 +127,13 @@
|
||||
T = get_turf(clone)
|
||||
var/turf/CT = T
|
||||
for(var/i = 0 to 8)
|
||||
if(!CT) // Emergency exit
|
||||
return null
|
||||
var/Cdir = pick(GLOB.cardinal)
|
||||
if(prob(30))
|
||||
Cdir = clone.dir // Results in hallucinations somewhat being in front of you
|
||||
var/turf/NT = get_step(CT,Cdir)
|
||||
if(!NT.density)
|
||||
if(NT && !NT.density)
|
||||
CT = NT
|
||||
T = CT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user