Skip to content

Commit

Permalink
Fix weapon tracker loading default spell on login
Browse files Browse the repository at this point in the history
Fix default totems loading on login in SOD
  • Loading branch information
Xianghar committed May 8, 2024
1 parent aa196f9 commit b5a2c72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ SettingsFunctions = {
-- update rank and set macro from attribute because of ft-1/ft-button
TotemTimers.UpdateRank(button)
else
if not GetSpellInfo(value) or not AvailableSpells[value] then
if not GetSpellInfo(value) then
if AvailableSpells[SpellIDs.RockbiterWeapon] then
value = SpellIDs.RockbiterWeapon
elseif AvailableSpells[SpellIDs.FlametongueWeapon] then
Expand Down
3 changes: 2 additions & 1 deletion Spells.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ if LE_EXPANSION_LEVEL_CURRENT < 2 then
return SpellIDs.Windfury
end
end
return (useName or ForceSpellNames[name]) and name or select(7, GetSpellInfo(name))
-- ... or spell is a workaround for SOD GetSpellInfo not working immediately on login
return (useName or ForceSpellNames[name]) and name or (select(7, GetSpellInfo(name)) or spell)
end
end

Expand Down
3 changes: 3 additions & 0 deletions changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
4.0.3
- Fix weapon tracker loading default spell on login
- Fix default totems loading on login in SOD
4.0.2
- Fixed TT not hiding in some vehicles
- Added Greater Healing Wave to Maelstrom proc
Expand Down

0 comments on commit b5a2c72

Please sign in to comment.