From 623411e231d5c79020a3b5e92f6527b6d59f5b4e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 8 Oct 2019 17:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=83=BD=E9=87=8F=E6=8A=A4?= =?UTF-8?q?=E7=9B=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/human.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index efb4c14..6c0efc2 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -779,6 +779,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); + SyncAroundPlayers(__FILE__, __LINE__, __func__); } else { float old_health = health; health = std::max(0.0f, health - dec_hp);