Bug fix. Don't throttle if unit-mouseover isn't available.
Scott Sibley [09-17-10 - 05:10]
Bug fix. Don't throttle if unit-mouseover isn't available.
diff --git a/StarTip.lua b/StarTip.lua
index 958636d..a915f91 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -602,7 +602,7 @@ local lastTime = GetTime()
function StarTip.OnTooltipSetUnit(...)
throttleTimer = throttleTimer or LibTimer:New("StarTip.Throttle", StarTip.db.profile.throttleVal, false, endThrottle, nil, StarTip.db.profile.errorLevel)
- if GetTime() < lastTime + StarTip.db.profile.throttleVal then throttleTimer:Start(); GameTooltip:Hide() return ... end
+ if GetTime() < lastTime + StarTip.db.profile.throttleVal and UnitIsPlayer("mouseover") then throttleTimer:Start(); GameTooltip:Hide() return ... end
lastTime = GetTime()
StarTip.fading = false