Skip to content

Commit

Permalink
DF new toc, adding Cata instead of Wrath TOC, dropping BCC, and blind…
Browse files Browse the repository at this point in the history
… fix for reported lua error in GetTrain
  • Loading branch information
mooreatv committed May 31, 2024
1 parent c3fba48 commit d8296fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 23 deletions.
20 changes: 0 additions & 20 deletions Mama/Mama-BCC.toc

This file was deleted.

4 changes: 2 additions & 2 deletions Mama/Mama-Wrath.toc → Mama/Mama-Cata.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Interface: 30403
## Interface: 40400
## Title: M.A.M.A.
## Notes: |cFF99E5FFM|rooreaTv's/minimal yet |cFF99E5FFA|rwesome |cFF99E5FFM|rultiboxing |cFF99E5FFA|rssistant (|cFF99E5FF/mama|r)
## Notes: Wrath of the Lich King Classic Edition
## Notes: Cataclysm Classic Edition
## Author: MooreaTV moorea@ymail.com
## Version: @project-version@
## DefaultState: Enabled
Expand Down
2 changes: 1 addition & 1 deletion Mama/Mama-Mainline.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 100206
## Interface: 100207
## Title: M.A.M.A.
## Notes: |cFF99E5FFM|rooreaTv's/minimal yet |cFF99E5FFA|rwesome |cFF99E5FFM|rultiboxing |cFF99E5FFA|rssistant (|cFF99E5FF/mama|r)
## Notes: Dragonflight edition
Expand Down
5 changes: 5 additions & 0 deletions Mama/Mama.lua
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,11 @@ function MM:GetTrain()
if MM:GetLead() == "player" then
return "player"
end
-- TODO fix this but for now all I have is a stack trace from 1 user and I can't reproduce so:
if not DB.watched or not DB.watched.slot then
MM:Warning("Strange init order issue, will not setup train macro properly yet, try Mama Lead again later")
return "player"
end
local idx = ((DB.watched.slot+DB.expectedCount-2)%DB.expectedCount)+1
local fullName = DB.watched[idx]
if fullName then
Expand Down

0 comments on commit d8296fb

Please sign in to comment.