修复无属性旅行者的天赋及命座展示错误

This commit is contained in:
yoimiya-kokomi 2022-09-04 14:19:58 +08:00
parent 73c69f784d
commit 5f924c3a4e

View File

@ -26,7 +26,7 @@ class Character extends Base {
this.meta = meta
for (let key of this._dataKey.split(',')) {
if (key === 'elem') {
this.elem = elem || meta.elem
this.elem = CharId.getElem(elem || meta.elem) || 'anemo'
} else {
this[key] = meta[key]
}