(远征): 修复次级属性表超过等级的数据报错

This commit is contained in:
luying
2022-11-02 14:15:17 +08:00
parent 4259a0e9a4
commit 28495373fc
2 changed files with 3 additions and 1 deletions
@@ -281,6 +281,7 @@ export async function getResetRemainCnt(curTime: Date, roleId: string, role?: Ro
let newAttribute = new AttributeCal();
newAttribute.setLv(_lv);
let dicExpeditionSubAttr = gameData.expeditionSubAttr.get(_lv);
if(!dicExpeditionSubAttr) dicExpeditionSubAttr = gameData.expeditionSubAttr.get('max');
newAttribute.setByWarJson(dicExpeditionSubAttr.attribute); // 次级属性
let subAttrCe = newAttribute.calSubAttrCe() * enemyCount;