Skip to content

Commit

Permalink
fixed automatic skill tree reset
Browse files Browse the repository at this point in the history
  • Loading branch information
giniedp committed Apr 21, 2024
1 parent f9cb477 commit a23d9c2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class GearsetPaneSkillComponent {
effect(() => {
const equipped = this.equippedTag
const slotted = this.instance?.weapon
if ((!equipped && !slotted) || (equipped === slotted) || this.disabled) {
if ((!equipped || !slotted) || eqCaseInsensitive(equipped, slotted) || this.disabled) {
return
}
this.updateSkill({
Expand Down Expand Up @@ -158,7 +158,8 @@ export class GearsetPaneSkillComponent {
},
displayMode: ['grid'],
injector: this.injector,
}).then((id: string) => {
}).then((ids: string[]) => {
const id = ids?.[0]
return id ? this.db.read(id) : null
})
if (!result) {
Expand Down

0 comments on commit a23d9c2

Please sign in to comment.