Skip to content

Commit

Permalink
superwow: only remove existing entries on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed May 10, 2024
1 parent 604f455 commit b49afca
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions modules/superwow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ pfUI:RegisterModule("superwow", "vanilla", function ()
local guid = arg1

-- delete all cast entries of guid
libcast.db[guid].cast = nil
libcast.db[guid].rank = nil
libcast.db[guid].start = nil
libcast.db[guid].casttime = nil
libcast.db[guid].icon = nil
libcast.db[guid].channel = nil
if libcast.db[guid] then
libcast.db[guid].cast = nil
libcast.db[guid].rank = nil
libcast.db[guid].start = nil
libcast.db[guid].casttime = nil
libcast.db[guid].icon = nil
libcast.db[guid].channel = nil
end
end
end)
end)

0 comments on commit b49afca

Please sign in to comment.