Quantcast

Make sure the unit is a player each talent update.

Scott Sibley [08-05-10 - 03:23]
Make sure the unit is a player each talent update.
Filename
Modules/Text.lua
diff --git a/Modules/Text.lua b/Modules/Text.lua
index 7cb4289..d9a85cb 100644
--- a/Modules/Text.lua
+++ b/Modules/Text.lua
@@ -112,7 +112,7 @@ function expireQuery()
 end

 local updateTalents = function()
-	if not UnitExists("mouseover") then
+	if not UnitExists("mouseover") or not UnitIsPlayer("mouseover") then
 		self:CancelTimer(talentTimer)
 		self:CancelTimer(expireTimer)
 		expireTimer = nil