diff --git a/.vscode/settings.json b/.vscode/settings.json index 8c6797b..e0d2b91 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -36,6 +36,6 @@ "utf8": "disable" }, "Lua.workspace.library": [ - "~/.vscode-server/extensions/ketho.wow-api-0.17.4/Annotations" + "~/.vscode-server/extensions/ketho.wow-api-0.17.6/Annotations" ] } diff --git a/SheepMonitor.toc b/SheepMonitor.toc index 268cad6..4490069 100755 --- a/SheepMonitor.toc +++ b/SheepMonitor.toc @@ -1,8 +1,8 @@ -## Interface: 110000 +## Interface: 110000, 40400 ## Title: Sheep Monitor ## Notes: Provides various methods of notification to help you keep track of your flock. ## Author: funkjedi -## Version: 1.29 +## Version: 1.30 ## SavedVariables: SheepMonitorDatabase ## OptionalDeps: Ace3, LibAuraInfo-1.0 ## X-Curse-Project-ID: 28218 diff --git a/changelog.txt b/changelog.txt index 517ebcd..d34e04b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +1.30 +- updated for classic/cata + 1.29 - remove LibAuras dep diff --git a/main.lua b/main.lua index 5262b93..2b3c82c 100755 --- a/main.lua +++ b/main.lua @@ -56,12 +56,21 @@ function SheepMonitor:OnInitialize() LibAuraInfo.auraInfo[12826] = '50;1' LibAuraInfo.auraInfo[28272] = '50;1' end + + if (self:IsCata()) then + LibAuraInfo.auraInfo[118] = '50;1' + LibAuraInfo.auraInfo[28272] = '50;1' + end end function SheepMonitor:IsClassic() return WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE end +function SheepMonitor:IsCata() + return WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC +end + function SheepMonitor:OnEnable() self:RegisterEvent('COMBAT_LOG_EVENT_UNFILTERED') end