Skip to content

Commit

Permalink
v9.0.2 - Shadowlands alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaminariss committed Jan 1, 2021
1 parent ecd3d04 commit 61736a2
Show file tree
Hide file tree
Showing 6 changed files with 486 additions and 265 deletions.
31 changes: 31 additions & 0 deletions Main.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
local addonName, addonTable = ...;
_G[addonName] = addonTable;

--- @type MaxDps
if not MaxDps then return end

local MaxDps = MaxDps;

local Priest = MaxDps:NewModule('Priest');
addonTable.Priest = Priest;

Priest.spellMeta = {
__index = function(t, k)
print('Spell Key ' .. k .. ' not found!');
end
};

function Priest:Enable()
if MaxDps.Spec == 1 then
MaxDps.NextSpell = Priest.Discipline;
MaxDps:Print(MaxDps.Colors.Info .. 'Priest - Discipline');
elseif MaxDps.Spec == 2 then
MaxDps.NextSpell = Priest.Holy;
MaxDps:Print(MaxDps.Colors.Info .. 'Priest - Holy');
elseif MaxDps.Spec == 3 then
MaxDps.NextSpell = Priest.Shadow;
MaxDps:Print(MaxDps.Colors.Info .. 'Priest - Shadow');
end

return true;
end
7 changes: 5 additions & 2 deletions MaxDps_Priest.toc
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
## Title: MaxDps_Priest
## Version: 9.0.0.1
## Version: 9.0.2
## Author: Kaminaris
## Interface: 90002
## Dependencies: MaxDps
## LoadOnDemand: 1
## X-Curse-Project-ID: 98744
## X-WoWI-ID: 24648

main.lua
Main.lua
Specialization/Discipline.lua
Specialization/Holy.lua
Specialization/Shadow.lua
16 changes: 16 additions & 0 deletions Specialization/Discipline.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
local _, addonTable = ...;

if not MaxDps then
return
end

local Priest = addonTable.Priest;

local DI = {
};

setmetatable(DI, Priest.spellMeta);

function Priest:Discipline()
return nil;
end
16 changes: 16 additions & 0 deletions Specialization/Holy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
local _, addonTable = ...;

if not MaxDps then
return
end

local Priest = addonTable.Priest;

local HL = {
};

setmetatable(HL, Priest.spellMeta);

function Priest:Holy()
return nil;
end
Loading

0 comments on commit 61736a2

Please sign in to comment.