mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
修正伤害计算圣遗物buff丢失的问题
This commit is contained in:
parent
419bb1ff2d
commit
589d616609
@ -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)
|
||||
}
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user