Skip to content

Commit

Permalink
Merge pull request #496 from WowRarity/493-cursor-update-handling
Browse files Browse the repository at this point in the history
Fix OnCursorUpdate event handling to account for 10.0 changes
  • Loading branch information
rdw-software authored Oct 27, 2022
2 parents 2e9dc14 + f8ae698 commit 4b8499e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/EventHandlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function EventHandlers:Register()
self:RegisterEvent("GUILDBANKFRAME_CLOSED", "OnEvent")
self:RegisterEvent("MAIL_CLOSED", "OnEvent")
self:RegisterEvent("MAIL_SHOW", "OnEvent")
self:RegisterEvent("CURSOR_UPDATE", "OnCursorUpdate") -- Fishing detection
self:RegisterEvent("CURSOR_CHANGED", "OnCursorChanged") -- Fishing detection
self:RegisterEvent("UNIT_SPELLCAST_SENT", "OnSpellcastSent") -- Fishing detection
self:RegisterEvent("UNIT_SPELLCAST_STOP", "OnSpellcastStopped") -- Fishing detection
self:RegisterEvent("UNIT_SPELLCAST_FAILED", "OnSpellcastFailed") -- Fishing detection
Expand Down Expand Up @@ -823,7 +823,7 @@ local function stripColorCode(input)
return output
end

function R:OnCursorUpdate(event)
function R:OnCursorChanged(event)
if Rarity.foundTarget then
return
end
Expand All @@ -833,7 +833,7 @@ function R:OnCursorUpdate(event)
local t = stripColorCode(tooltipLeftText1:GetText())
if self.miningnodes[t] or self.fishnodes[t] or self.opennodes[t] then
Rarity.lastNode = t
Rarity:Debug("OnCursorUpdate found lastNode = " .. tostring(t))
Rarity:Debug("OnCursorChanged found lastNode = " .. tostring(t))
end
if Rarity.relevantSpells[Rarity.previousSpell] then
self:GetWorldTarget()
Expand Down

0 comments on commit 4b8499e

Please sign in to comment.