From 6837aa6d5cdcc29b0a5eb7768b69dddfba152e7c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 4 Jun 2023 10:45:07 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 34ba55b7..dc775dfd 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -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;