Quantcast

Show "Mana" on mana line when the unit's an NPC.

Scott Sibley [08-07-10 - 05:44]
Show "Mana" on mana line when the unit's an NPC.
Filename
Modules/Text.lua
diff --git a/Modules/Text.lua b/Modules/Text.lua
index 90d05d5..561e238 100644
--- a/Modules/Text.lua
+++ b/Modules/Text.lua
@@ -320,6 +320,10 @@ return value
 local text = StarTip:GetModule("Text")

 local class = select(2, UnitClass("mouseover"))
+if not UnitIsPlayer("mouseover") then
+	class = "MAGE"
+end
+
 return text.powers[class] or "Mana:"
 ]],
         right = [[