From 1fa891f380b8e7e83c28c524161b3bc1bc2091d2 Mon Sep 17 00:00:00 2001 From: Jrc13245 Date: Sun, 30 Nov 2025 20:39:04 -0500 Subject: [PATCH] fix some spell icons not respecting usability in forms --- Core.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core.lua b/Core.lua index c952fa0..2a8efd0 100644 --- a/Core.lua +++ b/Core.lua @@ -697,8 +697,11 @@ function CleveRoids.TestForActiveAction(actions) elseif isUsableBySpell == 1 and actions.active.inRange ~= 0 then -- Use IsUsableSpell result if available (handles forms/stances correctly) actions.active.usable = 1 + elseif isUsableBySpell == 0 then + -- IsSpellUsable returned 0 = wrong stance/form, not enough power type, etc. + actions.active.usable = nil elseif actions.active.inRange ~= 0 and not actions.active.oom then - -- Fallback to mana check if IsUsableSpell not available + -- Fallback to mana check ONLY if IsSpellUsable not available actions.active.usable = 1 -- pfUI:actionbar.lua -- update usable [out-of-range = 1, oom = 2, not-usable = 3, default = 0]