libcast: handle interrupts correctly

This commit is contained in:
shagu
2024-05-15 07:50:58 +02:00
parent 02443592cd
commit f5a47b8fbc
+4 -4
View File
@@ -274,12 +274,12 @@ libcast:SetScript("OnEvent", function()
if libcast:RemoveAction(mob, spell) then return end if libcast:RemoveAction(mob, spell) then return end
-- You interrupt (.+)'s (.+). -- You interrupt (.+)'s (.+).
mob, spell = cmatch(arg1, SPELLINTERRUPTSELFOTHER) mob, _ = cmatch(arg1, SPELLINTERRUPTSELFOTHER)
if libcast:RemoveAction(mob, spell) then return end if libcast:RemoveAction(mob, "INTERRUPT") then return end
-- (.+) interrupts (.+)'s (.+). -- (.+) interrupts (.+)'s (.+).
_, mob, spell = cmatch(arg1, SPELLINTERRUPTOTHEROTHER) _, mob, _ = cmatch(arg1, SPELLINTERRUPTOTHEROTHER)
if libcast:RemoveAction(mob, spell) then return end if libcast:RemoveAction(mob, "INTERRUPT") then return end
end end
end) end)