mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 02:16:02 +00:00
moved this.lastmax = nil to an other block (pull request)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user