Quantcast

Sadly, skeleton keys are not usable in trades

Adrian L Lange [08-30-14 - 12:11]
Sadly, skeleton keys are not usable in trades
Filename
Molinari.lua
diff --git a/Molinari.lua b/Molinari.lua
index e7d1d4a..1150a9c 100644
--- a/Molinari.lua
+++ b/Molinari.lua
@@ -28,7 +28,7 @@ function Molinari:Apply(itemLink, spell, r, g, b)
 	local bag = parent:GetParent():GetID()

 	local show = true
-	if(GetTradeTargetItemLink(7) == itemLink) then
+	if(GetTradeTargetItemLink(7) == itemLink and type(spell) ~= 'number') then
 		self:SetAttribute('alt-type1', 'macro')
 		self:SetAttribute('macrotext', string.format('/cast %s\n/run ClickTargetTradeButton(7)', spell))
 	elseif(GetContainerItemLink(bag, slot) == itemLink) then