调整圣遗物及天赋数据更新的逻辑

This commit is contained in:
Kokomi 2023-02-19 20:57:26 +08:00
parent c10fe06fea
commit b600d3799a
2 changed files with 5 additions and 5 deletions

View File

@ -76,10 +76,10 @@ export default class AvatarArtis extends Base {
arti.star = ds.star || 5
if (ds.mainId || ds.main) {
arti._name = ds.name || arti.name
arti._set = ds.set || Artifact.getSetNameByArti(arti.name) || arti.set || ''
arti._level = ds.level || arti.level
arti._star = ds.star || arti.star || 5
arti._name = ds._name || ds.name || arti._name || arti.name
arti._set = ds._set || Artifact.getSetNameByArti(arti._name) || arti._set || ''
arti._level = ds._level || ds.level || arti._level || arti.level
arti._star = ds._star || ds.star || arti._star || arti.star || 5
}
// 存在面板数据,更新面板数据

View File

@ -188,7 +188,7 @@ const MysAvatar = {
async refreshTalent (player, ids, force = 0) {
let e = player?.e
let mys = e?._mys
if (!e || !mys) {
if (!e || !mys || !mys.isSelfCookie) {
return false
}
let needReqIds = MysAvatar.getNeedRefreshIds(player, ids, force)