fix reactive for overpower and revenge to see as active in any stance.

This commit is contained in:
Jrc13245
2025-11-25 16:58:44 -05:00
parent 139c95ba22
commit 21119c8bd5
4 changed files with 312 additions and 6 deletions
+7 -1
View File
@@ -1185,7 +1185,13 @@ function CleveRoids.GetActionButtonInfo(slot)
end
function CleveRoids.IsReactiveUsable(spellName)
-- First check combat log-based proc tracking (works across stances)
if CleveRoids.HasReactiveProc and CleveRoids.HasReactiveProc(spellName) then
return 1
end
-- Use Nampower's IsSpellUsable if available (more accurate)
-- Note: IsSpellUsable doesn't actually exist in Nampower, but keeping for future compatibility
if IsSpellUsable then
local usable, oom = IsSpellUsable(spellName)
if usable == 1 and oom ~= 1 then
@@ -1195,7 +1201,7 @@ function CleveRoids.IsReactiveUsable(spellName)
end
end
-- Fallback to original method
-- Fallback to action bar slot checking (requires correct stance)
if not CleveRoids.reactiveSlots[spellName] then return false end
local actionSlot = CleveRoids.reactiveSlots[spellName]
local isUsable, oom = CleveRoids.Hooks.OriginalIsUsableAction(actionSlot)