mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
Merge pull request #11311 from Ccomp5950/stop_stop_hes_already_dead
Dead people feel no pain.
This commit is contained in:
@@ -32,6 +32,9 @@
|
|||||||
|
|
||||||
/datum/unarmed_attack/proc/apply_effects(var/mob/living/carbon/human/user,var/mob/living/carbon/human/target,var/armour,var/attack_damage,var/zone)
|
/datum/unarmed_attack/proc/apply_effects(var/mob/living/carbon/human/user,var/mob/living/carbon/human/target,var/armour,var/attack_damage,var/zone)
|
||||||
|
|
||||||
|
if(target.stat == DEAD)
|
||||||
|
return
|
||||||
|
|
||||||
var/stun_chance = rand(0, 100)
|
var/stun_chance = rand(0, 100)
|
||||||
|
|
||||||
if(attack_damage >= 5 && armour < 2 && !(target == user) && stun_chance <= attack_damage * 5) // 25% standard chance
|
if(attack_damage >= 5 && armour < 2 && !(target == user) && stun_chance <= attack_damage * 5) // 25% standard chance
|
||||||
|
|||||||
Reference in New Issue
Block a user