Skip to content

Commit

Permalink
Fixed spell casting identification for overridden spells.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dicebar committed Jul 26, 2024
1 parent 909bbc4 commit b38ffca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Conditions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ end
-- Check if a specified spell is currently being cast or channeled by the unit
local function CheckSpellCast(spell, unit)
if IsOff(unit) or not spell or (spell == "") then return true end

spell = MOD.spellOverrides[spell] or spell

local sp = UnitCastingInfo(unit)
if (sp ~= nil) and (spell == sp) then return true end
sp = UnitChannelInfo(unit)
Expand Down

0 comments on commit b38ffca

Please sign in to comment.