one last thing. my bad.

This commit is contained in:
hal9000PR
2021-07-25 14:41:03 +01:00
parent 509d6075f8
commit 86131efee5
@@ -8,8 +8,12 @@
playsound(get_turf(target), 'sound/effects/hit_kick.ogg', 50, TRUE, -1)
target.apply_damage(10, BRUTE, BODY_ZONE_HEAD)
target.apply_damage(40, STAMINA)
target.Weaken(2)
target.visible_message("<span class='warning'>[user] kicks [target] in the head, sending them face first into the floor!</span>",
if(!target.IsWeakened() && !target.resting && !target.stat)
target.visible_message("<span class='warning'>[user] kicks [target] in the head, sending them face first into the floor!</span>",
"<span class='userdanger'>You are kicked in the head by [user], sending you crashing to the floor!</span>")
else
target.visible_message("<span class='warning'>[user] kicks [target] in the head, leaving them reeling in pain!</span>",
"<span class='userdanger'>You are kicked in the head by [user], and you reel in pain!</span>")
target.Weaken(2)
add_attack_logs(user, target, "Melee attacked with martial-art [MA] : Keelhaul", ATKLOG_ALL)
return MARTIAL_COMBO_DONE