mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 10:40:48 +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.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
|
||||||
@@ -253,6 +252,7 @@ pfUI:RegisterModule("castbar", "vanilla", function ()
|
|||||||
else
|
else
|
||||||
this.bar:SetMinMaxValues(1,100)
|
this.bar:SetMinMaxValues(1,100)
|
||||||
this.bar:SetValue(100)
|
this.bar:SetValue(100)
|
||||||
|
this.lastMax = nil
|
||||||
this.fadeout = 1
|
this.fadeout = 1
|
||||||
this.delay = 0
|
this.delay = 0
|
||||||
this.itemIconApplied = nil
|
this.itemIconApplied = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user