Moving pulled objects as a borg checks if the turf is adjacent to you. (#25253)

* Move_Pulled now checks for adjacency of the turf you are moving something to.

* Move comment to correct line.

* Update code/modules/mob/mob_movement.dm

Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
This commit is contained in:
Adrer
2024-05-02 02:20:07 +02:00
committed by GitHub
parent 31390ff2e1
commit 24726c60fe
+3
View File
@@ -362,6 +362,9 @@
return
if(!Process_Spacemove(get_dir(pulling.loc, A)))
return
var/target_turf = get_step(pulling, get_dir(pulling.loc, A))
if(!Adjacent(target_turf)) //Make sure the turf we are trying to pull to is adjacent to the user.
return
if(ismob(pulling))
var/mob/M = pulling
var/atom/movable/t = M.pulling