From 641476c1bc3dae8bb57040499b0f091bf1fa44a1 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 10 Aug 2024 08:13:11 +0200 Subject: [PATCH] superwow: ignore buff procs during cast --- modules/superwow.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/superwow.lua b/modules/superwow.lua index e44c9567..6130739a 100644 --- a/modules/superwow.lua +++ b/modules/superwow.lua @@ -23,6 +23,16 @@ pfUI:RegisterModule("superwow", "vanilla", function () spell = spell or UNKNOWN icon = icon or "Interface\\Icons\\INV_Misc_QuestionMark" + -- skip on buff procs during cast + if event_type == "CAST" then + if not libcast.db[guid] or libcast.db[guid].cast ~= spell then + -- ignore casts without 'START' event, while there is already another cast. + -- those events can be for example a frost shield proc while casting frostbolt. + -- we want to keep the cast itself, so we simply skip those. + return + end + end + -- add cast action to the database if not libcast.db[guid] then libcast.db[guid] = {} end libcast.db[guid].cast = spell