Skip to content

Commit

Permalink
opsa, needed to call SetAbandonQuest(); somehow it worked without it …
Browse files Browse the repository at this point in the history
…for first quest - thx sawyer for the report
  • Loading branch information
mooreatv committed Dec 13, 2021
1 parent c8205ab commit 060153a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Coming next:
- Your input/suggestions welcome !
- See open issues for ideas https://github.com/mooreatv/Mama/issues)

v1.6.1 December 13th 2021
- Fix Abandon quest with Team

v1.6.0 December 12th 2021
- Added option to abandon quests as a team
- Simplified quest sharing code
Expand Down
3 changes: 2 additions & 1 deletion Mama/.luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ globals = {
"NumTaxiNodes",
"AbandonQuest",
"GetQuestLogTitle",
"GetNumQuestLogEntries"
"GetNumQuestLogEntries",
"SetAbandonQuest"
}
max_line_length = 132
ignore = {
Expand Down
4 changes: 4 additions & 0 deletions Mama/Mama.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ if not DB.isClassic then
function AbandonQuest()
C_QuestLog.AbandonQuest()
end
function SetAbandonQuest()
C_QuestLog.SetAbandonQuest()
end
function GetQuestLogTitle(id)
local info = C_QuestLog.GetInfo(id)
-- not really fully compatible but just what I need for MM:FindQuest
Expand Down Expand Up @@ -123,6 +126,7 @@ function MM:ExecuteAbandonQuestCommand(qid, from)
MM:PrintDefault("Mama: AbandonQuest % received from %: found % at %", qid, from, title, i)
SelectQuestLogEntry(i)
MM.receivedAbandon = qid
SetAbandonQuest()
AbandonQuest()
end

Expand Down

0 comments on commit 060153a

Please sign in to comment.