diff --git a/code/modules/mob/living/carbon/human/species/unathi.dm b/code/modules/mob/living/carbon/human/species/unathi.dm
index 5acf2341f9f..bcad7d9342e 100644
--- a/code/modules/mob/living/carbon/human/species/unathi.dm
+++ b/code/modules/mob/living/carbon/human/species/unathi.dm
@@ -73,10 +73,11 @@
name = "Tail lash"
icon_icon = 'icons/effects/effects.dmi'
button_icon_state = "tail"
+ check_flags = AB_CHECK_LYING | AB_CHECK_CONSCIOUS | AB_CHECK_STUNNED
/datum/action/innate/tail_lash/Activate()
var/mob/living/carbon/human/user = owner
- if(!user.restrained() || !user.buckled)
+ if((user.restrained() && user.pulledby) || user.buckled)
to_chat(user, "You need freedom of movement to tail lash!")
return
if(user.getStaminaLoss() >= 50)
@@ -86,13 +87,22 @@
var/obj/item/organ/external/E = C.get_organ(pick("l_leg", "r_leg", "l_foot", "r_foot", "groin"))
if(E)
user.changeNext_move(CLICK_CD_MELEE)
- user.visible_message("[src] smacks [C] in [E] with their tail! ", "You hit [C] in [E] with your tail!")
+ user.visible_message("[user] smacks [C] in [E] with their tail! ", "You hit [C] in [E] with your tail!")
user.adjustStaminaLoss(15)
C.apply_damage(5, BRUTE, E)
user.spin(20, 1)
playsound(user.loc, 'sound/weapons/slash.ogg', 50, 0)
+ add_attack_logs(user, C, "tail whipped")
+ if(user.restrained())
+ if(prob(50))
+ user.Weaken(5)
+ user.visible_message("[user] loses [user.p_their()] balance!", "You lose your balance!")
+ return
+ if(user.getStaminaLoss() >= 60) //Bit higher as you don't need to start, just would need to keep going with the tail lash.
+ to_chat(user, "You run out of momentum!")
+ return
/datum/species/unathi/handle_death(mob/living/carbon/human/H)
- H.stop_tail_wagging(1)
\ No newline at end of file
+ H.stop_tail_wagging(1)