WoWInterface SVN EasyDaily

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 74 to Rev 75
    Reverse comparison

Rev 74 → Rev 75

EasyDaily/EasyDaily.lua
285,13 → 285,17
local t = self:GetQuestTableByTitle(title)
local s = self:CanAutoTurnQuest(title)
if s and ( ( t and t.repeatable ) or isActive ) then
local i = 1
while GetQuestLogTitle(i) do
local q = GetQuestLogSelection()
for i = 1, GetNumQuestLogEntries(), 1 do
local questTitle, _, _, _, isHeader, _, isComplete = GetQuestLogTitle(i)
if ( not isHeader ) and questTitle:find(title) then
return isComplete and ( isComplete == 1 )
SelectQuestLogEntry(i)
QuestLog_Update()
local numObj = GetNumQuestLeaderBoards()
SelectQuestLogEntry(q)
QuestLog_Update()
return ( numObj == 0 ) or ( isComplete and ( isComplete == 1 ) )
end
i = i + 1
end
return self:QuestHasReqItems(title)
else
492,8 → 496,8
 
function EasyDaily:QuestHasReqItems(title)
local t = EasyDaily:GetQuestTableByTitle(title)
local r
if t and t.itemreqs then
local r
for j, k in ipairs(t.itemreqs) do
local count = self:CountContainerItem(k[1])
if count and ( count < k[2] ) then
501,7 → 505,7
r = true; break
end
end
return ( not r )
return ( not r )
end
end