Skip to content

Commit

Permalink
Alterac Valley: When auto turning in quests, makes sure to prioritize…
Browse files Browse the repository at this point in the history
… the new honor quest turn in first. Closes #35
  • Loading branch information
funkydude committed Jul 7, 2019
1 parent 59945a2 commit 093525d
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions battlegrounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -624,17 +624,25 @@ do
end
elseif mobId == 13236 then -- Primalist Thurloga
local num = GetItemCount(17306) -- Stormpike Soldier's Blood 17306
if num >= 5 then
SelectGossipAvailableQuest(2)
elseif num > 0 then
SelectGossipAvailableQuest(1)
if num > 0 then
if GetNumGossipActiveQuests() == 1 then
SelectGossipActiveQuest(1)
elseif num >= 5 then
SelectGossipAvailableQuest(2)
else
SelectGossipAvailableQuest(1)
end
end
elseif mobId == 13442 then -- Arch Druid Renferal
local num = GetItemCount(17423) -- Storm Crystal 17423
if num >= 5 then
SelectGossipAvailableQuest(2)
elseif num > 0 then
SelectGossipAvailableQuest(1)
if num > 0 then
if GetNumGossipActiveQuests() == 1 then
SelectGossipActiveQuest(1)
elseif num >= 5 then
SelectGossipAvailableQuest(2)
else
SelectGossipAvailableQuest(1)
end
end
elseif mobId == 13577 then -- Stormpike Ram Rider Commander
if GetItemCount(17643) > 0 then -- Frost Wolf Hide 17643
Expand Down

0 comments on commit 093525d

Please sign in to comment.