diff --git a/lua/app/global/global_func.lua b/lua/app/global/global_func.lua index 09b53f0b..2fcbcb00 100644 --- a/lua/app/global/global_func.lua +++ b/lua/app/global/global_func.lua @@ -446,7 +446,8 @@ function GFunc.getAttrShowValue(attrType, attrNum, notPercentSign) table.containValue(GConst.MATCH_SKILL_HURTP_NAME, attrType) or table.containValue(GConst.MATCH_CRIT_NAME, attrType) or table.containValue(GConst.MATCH_CRIT_TIME_NAME, attrType) or - table.containValue(GConst.MATCH_CURED_NAME, attrType) + table.containValue(GConst.MATCH_CURED_NAME, attrType) or + table.containValue(GConst.MATCH_ALL_HURTP_NAME, attrType) then local str = notPercentSign and "" or "%" return attrNum // GConst.BattleConst.PERCENT_FACTOR .. str diff --git a/lua/app/userdata/runes/runes_entity.lua b/lua/app/userdata/runes/runes_entity.lua index b424341d..fba86feb 100644 --- a/lua/app/userdata/runes/runes_entity.lua +++ b/lua/app/userdata/runes/runes_entity.lua @@ -188,6 +188,10 @@ function RunesEntity:getAttrValue(attrType, isBase) result = self:getAttrValue(GConst.MATCH_ATTACK_NAME[self:getHeroEntity():getMatchType()], true) result = result + self:getHeroEntity():getTotalBaseAtk() * self:getAttrValue(GConst.MATCH_ATTACK_ADD_NAME) // DEFAULT_FACTOR return result + elseif not isBase and (attrType == GConst.MATCH_NORMAL_HURTP_NAME[self:getHeroEntity():getMatchType()] or attrType == GConst.MATCH_SKILL_HURTP_NAME[self:getHeroEntity():getMatchType()]) then + result = self:getAttrValue(GConst.MATCH_ALL_HURTP_NAME[self:getHeroEntity():getMatchType()]) + result = result + self:getAttrValue(GConst.MATCH_ATTACK_ADD_NAME) + return result else local all = self:getAllAttr() if all == nil then