Verified Commit 7049032b authored by Nihilistzsche's avatar Nihilistzsche 👽
Browse files

This was producing ADDON_ACTION_BLOCKED basically every time I loaded the...

This was producing ADDON_ACTION_BLOCKED basically every time I loaded the game; so blocking this in combat.
parent 0b8bebcf
......@@ -349,7 +349,16 @@ function LP:StrataAndLevel()
LocationPlusPanel:SetFrameLevel(db.frameLevel)
end
function LP:PLAYER_REGEN_ENABLED()
self:UpdateLocation()
self:UnregisterEvent("PLAYER_REGEN_ENABLED")
end
function LP:UpdateLocation()
if _G.InCombatLockdown() or (_G.UnitAffectingCombat("player") or _G.UnitAffectingCombat("pet")) then
self:RegisterEvent("PLAYER_REGEN_ENABLED")
return
end
local db = E.db.locplus
local subZoneText = GetMinimapZoneText() or ""
local zoneText = GetRealZoneText() or UNKNOWN;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment