reset pet portrait texture + pet DEAD text disabled
This commit is contained in:
parent
9ce0bbc32a
commit
128f32f57f
@ -77,6 +77,7 @@ function Pets:ResetUnit(unitId)
|
|||||||
end
|
end
|
||||||
petFrame.healthBar:SetAlpha(0)
|
petFrame.healthBar:SetAlpha(0)
|
||||||
petFrame.healthBar:SetScript("OnUpdate", nil)
|
petFrame.healthBar:SetScript("OnUpdate", nil)
|
||||||
|
petFrame.healthBar.portrait:SetTexture(nil)
|
||||||
self:UnregisterEvent("UNIT_PET")
|
self:UnregisterEvent("UNIT_PET")
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -346,7 +347,7 @@ function Pets:SetHealthText(healthBar, health, healthMax)
|
|||||||
healthText = ("%d%%"):format(healthPercentage)
|
healthText = ("%d%%"):format(healthPercentage)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
healthText = "DEAD"
|
healthText = ""
|
||||||
end
|
end
|
||||||
|
|
||||||
healthBar.healthText:SetText(healthText)
|
healthBar.healthText:SetText(healthText)
|
||||||
|
Loading…
Reference in New Issue
Block a user