Index: Update.lua
===================================================================
--- Update.lua	(revision 79077)
+++ Update.lua	(working copy)
@@ -2,6 +2,7 @@
 
 local VERSION = tonumber(("$Revision$"):match("%d+"))
 
+local WoTLK = select(4, GetBuildInfo()) >= 30000
 local PitBull = PitBull
 local PitBull_Aura = PitBull:GetModule("Aura")
 local self = PitBull_Aura
@@ -19,12 +20,15 @@
 local unpack = _G.unpack
 local GetTime = _G.GetTime
 local GetItemQualityColor = _G.GetItemQualityColor
-local GetPlayerBuffTimeLeft = _G.GetPlayerBuffTimeLeft
-local GetPlayerBuffDispelType = _G.GetPlayerBuffDispelType
-local GetPlayerBuffApplications = _G.GetPlayerBuffApplications
-local GetPlayerBuffTexture = _G.GetPlayerBuffTexture
-local GetPlayerBuffName = _G.GetPlayerBuffName
-local GetPlayerBuff = _G.GetPlayerBuff
+local GetPlayerBuffTimeLeft, GetPlayerBuffDispelType, GetPlayerBuffApplications, GetPlayerBuffTexture, GetPlayerBuffName,GetPlayerBuff
+if not WoTLK then
+	GetPlayerBuffTimeLeft = _G.GetPlayerBuffTimeLeft
+	GetPlayerBuffDispelType = _G.GetPlayerBuffDispelType
+	GetPlayerBuffApplications = _G.GetPlayerBuffApplications
+	GetPlayerBuffTexture = _G.GetPlayerBuffTexture
+	GetPlayerBuffName = _G.GetPlayerBuffName
+	GetPlayerBuff = _G.GetPlayerBuff
+end
 local GetItemInfo = _G.GetItemInfo
 local GetInventoryItemLink = _G.GetInventoryItemLink
 local select = _G.select
@@ -326,13 +330,26 @@
 			if not sorting and #list >= maxAuras then
 				break
 			end
-			id = GetPlayerBuff(i, isBuff and "HELPFUL" or "HARMFUL")
+			if WotLK then
+				id = i 
+			else
+				id = GetPlayerBuff(i, isBuff and "HELPFUL" or "HARMFUL")
+			end
 			if id == 0 then
 				break
 			end
-			local name, iconTexture, count, debuffType, timeLeft = GetPlayerBuffName(id), GetPlayerBuffTexture(id), GetPlayerBuffApplications(id), GetPlayerBuffDispelType(id), GetPlayerBuffTimeLeft(id)
-			local duration = getPlayerAuraDuration(isBuff, name, timeLeft)
 			
+			local name, iconTexture, count, debuffType, timeLeft, duration
+			if WoTLK then
+				name, _, iconTexture, count, debuffType, duration, timeLeft = UnitAura(isBuff, "player", id)
+				if not name then
+					break
+				end
+			else
+				name, iconTexture, count, debuffType, timeLeft = GetPlayerBuffName(id), GetPlayerBuffTexture(id), GetPlayerBuffApplications(id), GetPlayerBuffDispelType(id), GetPlayerBuffTimeLeft(id)
+				duration = getPlayerAuraDuration(isBuff, name, timeLeft)
+			end
+			
 			local filtered = false
 			if filtering and not extraFilterSelection[name] then
 				if not filterSelection[name] then
Index: Frames.lua
===================================================================
--- Frames.lua	(revision 79077)
+++ Frames.lua	(working copy)
@@ -1,6 +1,7 @@
 if select(6, GetAddOnInfo("PitBull_" .. (debugstack():match("[i%.][t%.][B%.]ull\\Modules\\(.-)\\") or debugstack():match("[i%.][t%.][B%.]ull\\(.-)\\") or ""))) ~= "MISSING" then return end
 
 local VERSION = tonumber(("$Revision$"):match("%d+"))
+local WoTLK = select(4, GetBuildInfo()) >= 30000
 
 local PitBull = PitBull
 local PitBull_Aura = PitBull:GetModule("Aura")
@@ -14,7 +15,10 @@
 local _G = _G
 local unpack = _G.unpack
 local GameTooltip = _G.GameTooltip
-local GetPlayerBuff = _G.GetPlayerBuff
+local GetPlayerBuff
+if not WoTLK then
+  GetPlayerBuff= _G.GetPlayerBuff
+end
 local GetTime = _G.GetTime
 
 local border_path
@@ -41,13 +45,19 @@
 		if this.isBuff then
 			if this.itemSlot then
 				GameTooltip:SetInventoryItem("player", this.itemSlot)
+			elseif WoTLK then
+				GameToolTip:SetUnitBuff(this:GetParent():GetParent():GetUnit(), this.id)
 			else
 				local id = GetPlayerBuff(this.id, "HELPFUL")
 				GameTooltip:SetPlayerBuff(id, "HELPFUL")
 			end
 		else
-			local id = GetPlayerBuff(this.id, "HARMFUL")
-			GameTooltip:SetPlayerBuff(id, "HARMFUL")
+			if WoTLK then
+				GameTooltip:SetUnitDebuff(this:GetParent():GetParent():GetUnit(), this.id)
+			else
+ 				local id = GetPlayerBuff(this.id, "HARMFUL")
+				GameTooltip:SetPlayerBuff(id, "HARMFUL")
+			end
 		end
 	else
 		if this.isBuff then
