修正久岐忍伤害计算错误的问题

This commit is contained in:
Kokomi 2023-03-01 09:15:20 +08:00
parent c59698b954
commit ca8432792c
3 changed files with 8 additions and 7 deletions

View File

@ -73,8 +73,8 @@ let Gacha = {
let player = Player.create(uid)
let faceChar = Character.get(player.face || 10000014)
let imgs = faceChar.imgs
if (!imgs.face) {
let imgs = faceChar?.imgs
if (!imgs?.face) {
imgs = Character.get(10000079).imgs
}
return {

View File

@ -156,7 +156,7 @@ export default class ProfileDmg extends Base {
let ds = lodash.merge({ talent }, DmgAttr.getDs(attr, meta))
detail = detail({ ...ds, attr, profile })
}
let params = lodash.merge({}, defParams, detail.params || {})
let params = lodash.merge({}, defParams, detail?.params || {})
let { attr } = DmgAttr.calcAttr({ originalAttr, buffs, meta, params, talent: detail.talent || '' })
if (detail.isStatic) {
return

View File

@ -1,8 +1,9 @@
export const details = [, {
export const details = [{
title: '超绽放伤害',
dmg: ({calc, attr}, { reaction }) => {
return reaction('hyperBloom')}
},{
dmg: ({ calc, attr }, { reaction }) => {
return reaction('hyperBloom')
}
}, {
title: 'E释放伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, {