[MIRROR] Fixes staminacrit not paralyzing (#331)

* Fixes staminacrit not paralyzing (#52906)

Additionally removes the now-superfluous stam_paralyzed variable. We can already track this with the incapacitated effect from the stamina source.

* Fixes staminacrit not paralyzing

Co-authored-by: Rohesie <rohesie@gmail.com>
Co-authored-by: Useroth <37159550+Useroth@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-08-13 05:37:02 +02:00
committed by GitHub
co-authored by Rohesie Useroth
parent 7f88c2ea4e
commit 4325c025ef
5 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -133,7 +133,7 @@
var/damage = weapon.w_class * pain_mult
var/pain_chance_current = pain_chance
if(pain_stam_pct && victim.stam_paralyzed) //if it's a less-lethal embed, give them a break if they're already stamcritted
if(pain_stam_pct && HAS_TRAIT_FROM(victim, TRAIT_INCAPACITATED, STAMINA)) //if it's a less-lethal embed, give them a break if they're already stamcritted
pain_chance_current *= 0.2
damage *= 0.5
else if(victim.mobility_flags & ~MOBILITY_STAND)