mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 10:40:48 +00:00
fix for castbar not resetting if timer duration is the same as before.
This commit is contained in:
+6
-2
@@ -1373,9 +1373,13 @@ if hasNampower then
|
|||||||
|
|
||||||
elseif event == "SPELL_FAILED_OTHER" then
|
elseif event == "SPELL_FAILED_OTHER" then
|
||||||
local casterGuid = arg1
|
local casterGuid = arg1
|
||||||
|
local spellId = arg2
|
||||||
|
|
||||||
if casterGuid and pfUI.libdebuff_casts[casterGuid] then
|
if casterGuid and pfUI.libdebuff_casts[casterGuid] then
|
||||||
pfUI.libdebuff_casts[casterGuid] = nil
|
-- Only clear if spellID matches to avoid clearing a cast that already moved on
|
||||||
|
if pfUI.libdebuff_casts[casterGuid].spellID == spellId then
|
||||||
|
pfUI.libdebuff_casts[casterGuid] = nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if pfUI.libdebuff_spell_failed_other_hooks then
|
if pfUI.libdebuff_spell_failed_other_hooks then
|
||||||
for _, fn in pairs(pfUI.libdebuff_spell_failed_other_hooks) do
|
for _, fn in pairs(pfUI.libdebuff_spell_failed_other_hooks) do
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ pfUI:RegisterModule("castbar", "vanilla", function ()
|
|||||||
this.bar.left:SetText(spellname .. rank)
|
this.bar.left:SetText(spellname .. rank)
|
||||||
this.fadeout = nil
|
this.fadeout = nil
|
||||||
this.endTime = endTime
|
this.endTime = endTime
|
||||||
|
this.lastMax = nil -- reset so SetMinMaxValues is called for this new cast
|
||||||
|
|
||||||
-- set texture
|
-- set texture
|
||||||
if texture and this.showicon then
|
if texture and this.showicon then
|
||||||
|
|||||||
Reference in New Issue
Block a user