属性: fix缩小战力倍数

This commit is contained in:
luying
2021-03-01 09:59:45 +08:00
parent a0e87a9513
commit 2a684d1860
4 changed files with 38 additions and 14 deletions

View File

@@ -213,8 +213,9 @@ export function getBossHpByWarId(warId: number) {
warInfo.forEach(hero => {
let { attribute, dataId, relation, actorId } = hero;
if (relation === 2) {
let attrJson = new Attribute();
attrJson.setByWarJson(attribute, 1);
let newAttr = new Attribute();
newAttr.setByWarJson(attribute, 1);
let attrJson = newAttr.getReduceAttributes();
const hp = attrJson.hp||0;
if (hp > 0) {