Tail whip logic+logging

Were only able to tail whip while being both restrained and buckled,
when the intention was neither restrained nor buckled. Also adds the
logging for the tail whip attack.
This commit is contained in:
Mars
2018-03-22 11:01:27 +01:00
parent d94c3d1779
commit 88729b22a5
@@ -93,7 +93,7 @@
/datum/action/innate/tail_lash/Activate()
var/mob/living/carbon/human/user = owner
if(!user.restrained() || !user.buckled)
if(user.restrained() || user.buckled)
to_chat(user, "<span class='warning'>You need freedom of movement to tail lash!</span>")
return
if(user.getStaminaLoss() >= 50)
@@ -108,6 +108,7 @@
C.apply_damage(5, BRUTE, E)
user.spin(20, 1)
playsound(user.loc, 'sound/weapons/slash.ogg', 50, 0)
add_logs(user, C, "tail whipped")
@@ -1071,4 +1072,4 @@
"metabolic strainer" = /obj/item/organ/internal/liver/drask,
"eyes" = /obj/item/organ/internal/eyes/drask, //5 darksight.
"brain" = /obj/item/organ/internal/brain/drask
)
)