From 7e36000453e7694bf488a609d9b90265463075d0 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 6 Mar 2020 19:30:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8D=A2=E8=A3=85=E5=A4=87?= =?UTF-8?q?=E6=BB=A1=E8=A1=80=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index e7bf733..57a41c7 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -68,6 +68,7 @@ void Human::Initialize() RecalcSelfCollider(); volume_ = meta->volume; observers_.insert(this); + ability.hp = meta->i->health(); } float Human::GetSpeed() @@ -1343,7 +1344,6 @@ void Human::RecalcBaseAttr() if (helmet_meta) { ability.def += helmet_meta->i->def(); } - ability.hp = meta->i->health(); ability.max_hp = ability.hp; }