From e9ccc3ac6225a70ab21c3f9605fbdaf0116a1acc Mon Sep 17 00:00:00 2001 From: Ghommie <42542238+Ghommie@users.noreply.github.com> Date: Wed, 6 May 2020 01:03:54 +0200 Subject: [PATCH] Test and update. --- code/modules/mob/living/living.dm | 4 ++-- code/modules/mob/mob_movement.dm | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 5189f47fbc..4736ae5b4a 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -319,8 +319,8 @@ set_pull_offsets(M, state) /mob/living/proc/set_pull_offsets(mob/living/M, grab_state = GRAB_PASSIVE) - if(M.buckled) - return //don't make them change direction or offset them if they're buckled into something. + if(M.buckled || M.combat_flags & COMBAT_FLAG_COMBAT_ACTIVE) + return //don't make them change direction or offset them if they're buckled into something or in combat mode. var/offset = 0 switch(grab_state) if(GRAB_PASSIVE) diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm index adf3e349b7..872889fd53 100644 --- a/code/modules/mob/mob_movement.dm +++ b/code/modules/mob/mob_movement.dm @@ -100,8 +100,7 @@ if(mob.throwing) mob.throwing.finalize(FALSE) - var/atom/movable/P = mob.pulling - if(P && !ismob(P) && P.density) + if(mob.pulling && !(combat_flags & COMBAT_FLAG_COMBAT_ACTIVE)) mob.setDir(turn(mob.dir, 180)) SEND_SIGNAL(mob, COMSIG_MOB_CLIENT_MOVE, src, direction, n, oldloc)