Skip to content

Commit

Permalink
Updating for Cata
Browse files Browse the repository at this point in the history
  • Loading branch information
funkjedi committed Sep 14, 2024
1 parent cc88c10 commit cd59f3f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
4 changes: 2 additions & 2 deletions SheepMonitor.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.30
- updated for classic/cata

1.29
- remove LibAuras dep

Expand Down
9 changes: 9 additions & 0 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd59f3f

Please sign in to comment.