moved this.lastmax = nil to an other block (pull request)

This commit is contained in:
Meow
2026-03-30 17:25:17 +02:00
parent 206d085026
commit b6e1f3cfb2
+1 -1
View File
@@ -174,7 +174,6 @@ pfUI:RegisterModule("castbar", "vanilla", function ()
this.bar.left:SetText(spellname .. rank)
this.fadeout = nil
this.endTime = endTime
this.lastMax = nil -- reset so SetMinMaxValues is called for this new cast
-- set texture
if texture and this.showicon then
@@ -253,6 +252,7 @@ pfUI:RegisterModule("castbar", "vanilla", function ()
else
this.bar:SetMinMaxValues(1,100)
this.bar:SetValue(100)
this.lastMax = nil
this.fadeout = 1
this.delay = 0
this.itemIconApplied = nil