Merge pull request #11605 from necromanceranne/ONLY_TRUST_YOUR_FISTS

PUNCHING: YOU SHOULD BE SCREAMING EDITION
This commit is contained in:
kevinz000
2020-03-25 12:23:08 -07:00
committed by GitHub
6 changed files with 48 additions and 24 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
D.apply_damage(damage, STAMINA, affecting, armor_block)
log_combat(A, D, "punched (boxing) ")
if(D.getStaminaLoss() > 100)
if(D.getStaminaLoss() > 100 && istype(D.mind?.martial_art, /datum/martial_art/boxing))
var/knockout_prob = (D.getStaminaLoss() + rand(-15,15))*0.75
if((D.stat != DEAD) && prob(knockout_prob))
D.visible_message("<span class='danger'>[A] has knocked [D] out with a haymaker!</span>", \