From f9753316b0c2fe16ff45f48aa37253fd45e3dfce Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 2 Nov 2023 14:45:24 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 09f3dc74..b0768ff6 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -230,6 +230,11 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string killer_name, in if (!room->BattleStarted()) { return; } +#ifdef DEBUG + if (a8::HasBitFlag(status, CS_NoDie)) { + return; + } +#endif #ifdef DEBUG #if 0 if (IsPlayer()) {