Quantcast

Respect alwaysCompareItems

p3lim [09-12-13 - 15:50]
Respect alwaysCompareItems
Filename
HabeebIt.lua
diff --git a/HabeebIt.lua b/HabeebIt.lua
index 2682635..9b4f43a 100644
--- a/HabeebIt.lua
+++ b/HabeebIt.lua
@@ -146,7 +146,7 @@ local function HookStartRoll()
 end

 local function ItemButtonUpdate(self, elapsed)
-	if(IsModifiedClick('COMPAREITEMS')) then
+	if(IsModifiedClick('COMPAREITEMS') or (GetCVarBool('alwaysCompareItems') and not IsEquippedItem(self.itemID))) then
 		GameTooltip_ShowCompareItem()
 	else
 		ShoppingTooltip1:Hide()