Skip to content

Commit

Permalink
Add support for rune engravings in SoD
Browse files Browse the repository at this point in the history
  • Loading branch information
Snakybo committed Dec 2, 2023
1 parent 3520757 commit 5892638
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The format of this changelog is based on [Keep a Changelog](https://keepachangel
* The MINOR component is used whenever a version has backwards-compatible profile changes. This also indicates that the user can not switch back to a previous MINOR version without using a backup.
* The PATCH component is used for versions that do not contain profile format changes. Users can freely switch between PATCH versions without risk of data loss.

## [Unreleased]

### Added

* Add support for rune engravings on Classic Era 1.15.0

## [1.14.0] - 2023-12-01

### Added
Expand Down
2 changes: 1 addition & 1 deletion Clicked/Core/BindingProcessor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ function Addon:UpdateBindingLoadState(binding, options)
end

-- spell known
if ShouldPerformStateCheck("PLAYER_TALENT_UPDATE", "PLAYER_LEVEL_CHANGED", "LEARNED_SPELL_IN_TAB") then
if ShouldPerformStateCheck("PLAYER_TALENT_UPDATE", "PLAYER_LEVEL_CHANGED", "LEARNED_SPELL_IN_TAB", "RUNE_UPDATED") then
-- If the known spell limiter has been enabled, see if the spell is currrently
-- avaialble for the player. This is not limited to just spells as the name
-- implies, using the GetSpellInfo function on an item also returns a valid value.
Expand Down
8 changes: 8 additions & 0 deletions Clicked/Core/Clicked.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ local function UNIT_TARGET()
Addon:AbilityTooltips_Refresh()
end

local function RUNE_UPDATED()
Clicked:ReloadBindings(false, true, "RUNE_UPDATED")
end

-- Public addon API

function Clicked:OnInitialize()
Expand Down Expand Up @@ -243,6 +247,10 @@ function Clicked:OnEnable()
end
end

if Addon:IsClassic() then
self:RegisterEvent("RUNE_UPDATED", RUNE_UPDATED)
end

if Addon:IsGameVersionAtleast("WOTLK") then
self:RegisterEvent("PLAYER_TALENT_UPDATE", PLAYER_TALENT_UPDATE)
end
Expand Down

0 comments on commit 5892638

Please sign in to comment.