This commit is contained in:
aozhiwei 2023-06-04 10:45:07 +08:00
parent 3655a279b9
commit 6837aa6d5c

View File

@ -299,7 +299,8 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string killer_name, in
BeKill(killer_id, killer_name, weapon_id, real_killer_id, real_killer_name);
SyncAroundPlayers(__FILE__, __LINE__, __func__);
} else {
if (HasNoDownedTeammate() && !room->IsPveRoom()) {
if ((HasNoDownedTeammate() && !room->IsPveRoom()) ||
GetInventory(IS_SHEN_BAO) > 0) {
SetHP(GetMaxHP() *
std::min(1.0f, (float)mt::Param::GetFloatParam("downed_recover_hp")));
downed = true;