From 9dfe7dda5700744146055213733ff0ba8c0f188f Mon Sep 17 00:00:00 2001 From: luying Date: Sat, 9 Jan 2021 12:06:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=85=A8=E5=B1=80=E5=85=BB=E6=88=90?= =?UTF-8?q?=E6=88=98=E5=8A=9B=E7=BF=BB=E5=80=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/pubUtils/playerCe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/pubUtils/playerCe.ts b/shared/pubUtils/playerCe.ts index a2ca8ebde..f18fbbe55 100644 --- a/shared/pubUtils/playerCe.ts +++ b/shared/pubUtils/playerCe.ts @@ -913,7 +913,7 @@ async function reCalRoleAttr(heros: Array, ceAttr: CeAttrRole, type: n if (attrName == '_id') continue; let globalAttrData: CeAttrDataRole = reIncAttr[attrName] || new CeAttrDataRole(); for (let key in globalAttrData) { - ceAttr[attrName][key] += parseInt(globalAttrData[key] || 0); + ceAttr[attrName][key] = parseInt(globalAttrData[key] || 0); } } } \ No newline at end of file