fixes attacking stuff on your tile being instant lmao (#13070)

* fixes attacking stuff on your tile being instant lmao

* whoops
This commit is contained in:
Theos
2022-01-09 00:53:43 -05:00
committed by GitHub
parent 2bea6c79fa
commit 4e38e4b062

View File

@@ -46,7 +46,7 @@
/mob/living/attackby(obj/item/I, mob/living/user, params)
if(..())
return TRUE
user.changeNext_move(CLICK_CD_MELEE * I.weapon_stats[SWING_SPEED] * get_dist(src,user)) //range increases attack cooldown by swing speed
user.changeNext_move(CLICK_CD_MELEE * I.weapon_stats[SWING_SPEED] * max(get_dist(src,user), 1)) //range increases attack cooldown by swing speed
user.weapon_slow(I)
if(user.a_intent == INTENT_HARM && stat == DEAD && (butcher_results || guaranteed_butcher_results)) //can we butcher it?
var/datum/component/butchering/butchering = I.GetComponent(/datum/component/butchering)