mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
superwow: ignore buff procs during cast
This commit is contained in:
@@ -23,6 +23,16 @@ pfUI:RegisterModule("superwow", "vanilla", function ()
|
|||||||
spell = spell or UNKNOWN
|
spell = spell or UNKNOWN
|
||||||
icon = icon or "Interface\\Icons\\INV_Misc_QuestionMark"
|
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
|
-- add cast action to the database
|
||||||
if not libcast.db[guid] then libcast.db[guid] = {} end
|
if not libcast.db[guid] then libcast.db[guid] = {} end
|
||||||
libcast.db[guid].cast = spell
|
libcast.db[guid].cast = spell
|
||||||
|
|||||||
Reference in New Issue
Block a user