debuffs: persist remaining pending spells

This commit is contained in:
shagu
2018-04-05 19:55:07 +02:00
parent aee5944ef7
commit fa4048b56e
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -11,6 +11,7 @@ pfUI:RegisterModule("debuffs", function ()
pfUI.debuffs:RegisterEvent("CHAT_MSG_SPELL_SELF_DAMAGE")
pfUI.debuffs:RegisterEvent("PLAYER_TARGET_CHANGED")
pfUI.debuffs:RegisterEvent("SPELLCAST_STOP")
pfUI.debuffs:RegisterEvent("UNIT_AURA")
pfUI.debuffs.active = true
@@ -73,6 +74,9 @@ pfUI:RegisterModule("debuffs", function ()
return
end
end
elseif event == "SPELLCAST_STOP" then
-- Persist all spells that have not been removed till here
pfUI.debuffs:PersistPending()
end
end)
@@ -147,7 +151,7 @@ pfUI:RegisterModule("debuffs", function ()
end
function pfUI.debuffs:PersistPending(effect)
if pfUI.debuffs.pending[3] == effect then
if pfUI.debuffs.pending[3] == effect or ( effect == nil and pfUI.debuffs.pending[3] ) then
local unit = pfUI.debuffs.pending[1]
local unitlevel = pfUI.debuffs.pending[2]
+1 -1
View File
@@ -2,7 +2,7 @@
## Title: |cff33ffccpf|cffffffffUI
## Author: Shagu
## Notes: A complete user interface replacement.
## Version: 3.8.1
## Version: 3.8.2
## SavedVariables: pfUI_profiles, pfUI_gold
## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB