From f5a47b8fbc695a78388e1fbc8bfd3e396f80377e Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 15 May 2024 07:50:58 +0200 Subject: [PATCH] libcast: handle interrupts correctly --- libs/libcast.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/libcast.lua b/libs/libcast.lua index 4dbd1f19..63036152 100644 --- a/libs/libcast.lua +++ b/libs/libcast.lua @@ -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)