Fixes an OOO issues with badminbombs and mobs (#19363)

This commit is contained in:
GDN
2022-10-13 21:44:13 +02:00
committed by GitHub
parent e9bbb0c0b6
commit c15bf6dbb3
+1 -2
View File
@@ -402,9 +402,8 @@
/obj/item/bombcore/badmin/summon/detonate()
var/obj/machinery/syndicatebomb/B = src.loc
for(var/i = 0; i < amt_summon; i++)
var/atom/movable/X = new summon_path
var/atom/movable/X = new summon_path(get_turf(src))
X.admin_spawned = TRUE
X.loc = get_turf(src)
if(prob(50))
for(var/j = 1, j <= rand(1, 3), j++)
step(X, pick(NORTH,SOUTH,EAST,WEST))