-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMain.lua
34 lines (29 loc) · 899 Bytes
/
Main.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
local addonName, addonTable = ...
_G[addonName] = addonTable
--- @type MaxDps
if not MaxDps then return end
local MaxDps = MaxDps
local UnitPower = UnitPower
local Druid = MaxDps:NewModule('Druid', 'AceEvent-3.0')
addonTable.Druid = Druid
Druid.spellMeta = {
__index = function(t, k)
print('Spell Key ' .. k .. ' not found!')
end
}
function Druid:Enable()
if MaxDps.Spec == 1 then
MaxDps.NextSpell = Druid.Balance
MaxDps:Print(MaxDps.Colors.Info .. 'Druid Balance', "info")
elseif MaxDps.Spec == 2 then
MaxDps.NextSpell = Druid.Feral
MaxDps:Print(MaxDps.Colors.Info .. 'Druid Feral', "info")
elseif MaxDps.Spec == 3 then
MaxDps.NextSpell = Druid.Guardian
MaxDps:Print(MaxDps.Colors.Info .. 'Druid Guardian', "info")
elseif MaxDps.Spec == 4 then
MaxDps.NextSpell = Druid.Restoration
MaxDps:Print(MaxDps.Colors.Info .. 'Druid Restoration', "info")
end
return true
end