From c58bb1b1851bc1eab225c2b44e05a43a3792e9d3 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 25 Jul 2023 15:35:55 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/hero/hero_entity.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lua/app/userdata/hero/hero_entity.lua b/lua/app/userdata/hero/hero_entity.lua index 4addcd96..d9e660d4 100644 --- a/lua/app/userdata/hero/hero_entity.lua +++ b/lua/app/userdata/hero/hero_entity.lua @@ -404,8 +404,7 @@ end -- 获取总基础生命值(英雄+装备) function HeroEntity:getTotalBaseHp() - local result = 0 - result = result + self:getTotalAttrValue(GConst.MATCH_HP_NAME[self:getMatchType()]) + local result = self:getCfgHp() -- 武器 + 防具 for partName, partType in pairs(GConst.EquipConst.PART_TYPE) do local equipEntity = self:getEquips(partType) @@ -418,8 +417,7 @@ end -- 获取总基础攻击值(英雄+装备) function HeroEntity:getTotalBaseAtk() - local result = 0 - result = result + self:getTotalAttrValue(GConst.MATCH_HP_NAME[self:getMatchType()]) + local result = self:getCfgAtk() -- 武器 + 防具 for partName, partType in pairs(GConst.EquipConst.PART_TYPE) do local equipEntity = self:getEquips(partType)