fixes grav & vortex anomalies throwing their own core at people (#17292)

This commit is contained in:
Charlie
2022-01-03 20:00:50 +01:00
committed by GitHub
parent 2b3edf57fc
commit 5363c10afa
+3 -3
View File
@@ -112,7 +112,7 @@
if(!M.mob_negates_gravity())
step_towards(M,src)
for(var/obj/O in range(0, src))
if(!O.anchored)
if(!O.anchored && O.loc != src) // so it cannot throw the anomaly core
var/mob/living/target = locate() in view(4, src)
if(target && !target.stat)
O.throw_at(target, 5, 10)
@@ -311,8 +311,8 @@
//Throwing stuff around!
for(var/obj/O in range(2, src))
if(O == src)
return //DON'T DELETE YOURSELF GOD DAMN
if(O == src || O.loc == src)
return //DON'T DELETE YOURSELF OR YOUR CORE GOD DAMN
if(!O.anchored)
var/mob/living/target = locate() in view(4, src)
if(target && !target.stat)