From 24bacc87c19bad3f8535f46036657c240815a842 Mon Sep 17 00:00:00 2001 From: Xhuis Date: Sun, 29 Jan 2017 07:16:08 -0500 Subject: [PATCH] Allows timed actions to be performed while drifting (Winter Thaw 2017) (#23384) * Allows do_after actions to be performed while drifting * Allows more actions --- code/__HELPERS/mobs.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/__HELPERS/mobs.dm b/code/__HELPERS/mobs.dm index 7b60ab9cbdb..04e9530957b 100644 --- a/code/__HELPERS/mobs.dm +++ b/code/__HELPERS/mobs.dm @@ -275,8 +275,9 @@ Proc for attack log creation, because really why not break if(Tloc && (!target || Tloc != target.loc)) - . = 0 - break + if((Uloc != Tloc || Tloc != user) && !drifting) + . = 0 + break if(needhand) //This might seem like an odd check, but you can still need a hand even when it's empty