From f73bb1429b131165150917ca6302000682d4619b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 25 Jul 2019 15:12:57 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index f18d6e6..2deb868 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -519,6 +519,7 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string& killer_name, i { if (energy_shield > 0.001f) { energy_shield = std::max(0.0f, energy_shield - dec_hp); + RemoveBuffByEffectId(kBET_Shield; } else { float old_health = GetHP(); ability.hp = std::max(0.0f, GetHP() - dec_hp);