Quantcast

Display fixes for potential count.

pschifferer [02-24-09 - 06:33]
Display fixes for potential count.
Filename
CauldronMainUI.lua
diff --git a/CauldronMainUI.lua b/CauldronMainUI.lua
index 1e9a324..7476828 100644
--- a/CauldronMainUI.lua
+++ b/CauldronMainUI.lua
@@ -267,8 +267,8 @@ function Cauldron:UpdateSkillList()
 		frame = _G["CauldronSkillItem"..i.."SkillName"];
 		local nameText = skillInfo.name;
 		local potentialCount = Cauldron:GetPotentialCraftCount(skillInfo);
-		if potentialCount > 0 then
-			nameText = nameText.." ["..skillInfo.available.."/"..potentialCount.."]";
+		if (potentialCount > 0) and (potentialCount > skillInfo.available) then
+			nameText = nameText.." ["..skillInfo.available.."/~"..potentialCount.."]";
 		elseif skillInfo.available > 0 then
 			nameText = nameText.." ["..skillInfo.available.."]";
 		end