修正伤害计算圣遗物buff丢失的问题

This commit is contained in:
Kokomi 2022-08-19 10:42:03 +08:00
parent 419bb1ff2d
commit 589d616609
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ export default new ProfileServ({
}
let details = data.avatarInfoList
if (!details || details.length === 0 || !details[0].propMap) {
return req.err('no-avatar', 5 * 60)
return req.err('empty', 5 * 60)
}
return EnkaData.getData(req.uid, data)
}

View File

@ -38,7 +38,7 @@ export default class ProfileDmg extends Base {
let originalAttr = Calc.attr(profile)
let weaponBuffs = await Calc.weapon(profile.weapon.name)
let reliBuffs = await Calc.reliquaries(profile.artis)
let reliBuffs = await Calc.reliquaries(profile.artis?.artis||{})
buffs = lodash.concat(buffs, weaponBuffs, reliBuffs)
lodash.forEach(buffs, (buff) => {