[MIRROR] Patch for fake attackers crashing MC (#11030)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-06-08 00:49:57 +02:00
committed by GitHub
co-authored by Will
parent 25f88f3dd4
commit 6977811626
+3 -1
View File
@@ -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