[MIRROR] Fixes critical condition not clearing up [MDB IGNORE] (#20379)

* Fixes critical condition not clearing up (#74536)

## About The Pull Request

A recent refactor accidentally removed critical condition clearing up
upon becoming conscious and healthy again. This PR fixes it.

## Why It's Good For The Game

Now when you are healed, you are not considered being in crit, so you
can not succumb while healthy, or will you get killed by nightwatcher's
rebirth.
Fixes #74149

## Changelog

🆑
fix: Critical condition will clear properly when you leave crit
/🆑

* Fixes critical condition not clearing up

---------

Co-authored-by: Profakos <profakos@gmail.com>
This commit is contained in:
SkyratBot
2023-04-06 16:12:56 -07:00
committed by GitHub
co-authored by Profakos
parent fa1082d301
commit a94c882808
+1 -1
View File
@@ -2131,7 +2131,7 @@ GLOBAL_LIST_EMPTY(fire_appearances)
if(CONSCIOUS)
if(. >= UNCONSCIOUS)
REMOVE_TRAIT(src, TRAIT_IMMOBILIZED, TRAIT_KNOCKEDOUT)
remove_traits(list(TRAIT_HANDS_BLOCKED, TRAIT_INCAPACITATED, TRAIT_FLOORED), STAT_TRAIT)
remove_traits(list(TRAIT_HANDS_BLOCKED, TRAIT_INCAPACITATED, TRAIT_FLOORED, TRAIT_CRITICAL_CONDITION), STAT_TRAIT)
if(SOFT_CRIT)
if(pulledby)
ADD_TRAIT(src, TRAIT_IMMOBILIZED, PULLED_WHILE_SOFTCRIT_TRAIT) //adding trait sources should come before removing to avoid unnecessary updates