Skip to content

Commit

Permalink
fix(skymp5-client): fix error in magicSyncService.ts (skyrim-multipla…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Oct 23, 2024
1 parent 3e9b819 commit 66f12c6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions skymp5-client/src/services/services/magicSyncService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,9 @@ export class MagicSyncService extends ClientListener {
const leftHandEquipmentType = ac.getEquippedItemType(SlotType.Left);
const rightHandEquipmentType = ac.getEquippedItemType(SlotType.Right);

// @ts-expect-error (TODO: Remove in 2.10.0)
if (leftHandEquipmentType === EquippedItemType.SpellOrScroll || leftHandEquipmentType === EquippedItemType.Staff ||
// @ts-expect-error (TODO: Remove in 2.10.0)
rightHandEquipmentType === EquippedItemType.SpellOrScroll || rightHandEquipmentType === EquippedItemType.Staff) {
// TODO: Spell => SpellOrScroll, since Spell is now a deprecated name (TODO: Remove in 2.10.0)
if (leftHandEquipmentType === EquippedItemType.Spell || leftHandEquipmentType === EquippedItemType.Staff ||
rightHandEquipmentType === EquippedItemType.Spell || rightHandEquipmentType === EquippedItemType.Staff) {
return true;
}

Expand Down

0 comments on commit 66f12c6

Please sign in to comment.