Skip to content

Commit

Permalink
libcast: handle interrupts correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed May 15, 2024
1 parent 0244359 commit f5a47b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/libcast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,12 @@ libcast:SetScript("OnEvent", function()
if libcast:RemoveAction(mob, spell) then return end

-- You interrupt (.+)'s (.+).
mob, spell = cmatch(arg1, SPELLINTERRUPTSELFOTHER)
if libcast:RemoveAction(mob, spell) then return end
mob, _ = cmatch(arg1, SPELLINTERRUPTSELFOTHER)
if libcast:RemoveAction(mob, "INTERRUPT") then return end

-- (.+) interrupts (.+)'s (.+).
_, mob, spell = cmatch(arg1, SPELLINTERRUPTOTHEROTHER)
if libcast:RemoveAction(mob, spell) then return end
_, mob, _ = cmatch(arg1, SPELLINTERRUPTOTHEROTHER)
if libcast:RemoveAction(mob, "INTERRUPT") then return end
end
end)

Expand Down

0 comments on commit f5a47b8

Please sign in to comment.