Fix using ItemList name in HasTrinket() condition.
Johnny C. Lam [03-09-13 - 18:45]
Fix using ItemList name in HasTrinket() condition.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@741 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleCondition.lua b/OvaleCondition.lua
index fc92e1a..40e8601 100644
--- a/OvaleCondition.lua
+++ b/OvaleCondition.lua
@@ -1333,7 +1333,7 @@ OvaleCondition.conditions.hastrinket = function(condition)
return testbool(OvaleEquipement:HasTrinket(trinketId), condition[2])
elseif OvaleData.itemList[trinketId] then
for _, v in pairs(OvaleData.itemList[trinketId]) do
- if OvaleEquipement:HasTrinket(trinketId) then
+ if OvaleEquipement:HasTrinket(v) then
return testbool(true, condition[2])
end
end