Skip to content

Commit

Permalink
Added incomplete Priest
Browse files Browse the repository at this point in the history
Incomplete as I dont have a level 110 Priest, Discpiline and Shadow
  • Loading branch information
FireCulex committed Aug 3, 2018
1 parent c2e9dcb commit 543cfa1
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 4 deletions.
8 changes: 8 additions & 0 deletions MaxDps_Priest/MaxDps_Priest.toc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Title: MaxDps_Priest
## Version:
## Author: FireCulex
## Interface: 70300
## Dependencies: MaxDps
## LoadOnDemand: 1

main.lua
73 changes: 69 additions & 4 deletions MaxDps_Priest/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ end

local Priest = MaxDps:NewModule('Priest');
-- Spells

local _Shield = 17;
local _Penance = 47540;
local _Solace = 129250;
local _Smite = 585;
local _Schism = 214621;
local _Pain = 589;
local _VoidEruption = 228260;
local _VampiricTouch = 34914;
local _MindBlast = 8092;
local _WordVoid = 205351;
local _DarkVoid = 263346;


-- General

function Priest:Enable()
Expand All @@ -21,16 +33,69 @@ function Priest:Enable()
return true;
end

function Priest.Discipline(timeShift, currentSpell, gcd, talents)
function Priest:Discipline(timeShift, currentSpell, gcd, talents)

-- if not MaxDps:Aura(_Shield, timeShift) then
-- return _Shield;
-- end

if not MaxDps:TargetAura(_Pain, timeShift) then
return _Pain;
end

if talents[_Schism] and MaxDps:SpellAvailable(_Schism, timeShift) then
return _Schism;
end


if MaxDps:SpellAvailable(_Penance, timeShift) then
return _Penance;
end

if talents[_Solace] and MaxDps:SpellAvailable(_Solace, timeShift) then
return _Solace;
end

if MaxDps:SpellAvailable(_Smite, timeShift) then
return _Smite;
end


end

function Priest.Holy(timeShift, currentSpell, gcd, talents)
function Priest:Holy(timeShift, currentSpell, gcd, talents)

end

function Priest.Shadow(timeShift, currentSpell, gcd, talents)
function Priest:Shadow(timeShift, currentSpell, gcd, talents)

local insanity = UnitPower('player', Enum.PowerType.Insanity);

if insanity == 100 and MaxDps:SpellAvailable(_VoidEruption, timeShift) then
return _VoidEruption;
end

if not MaxDps:TargetAura(_Pain, timeShift) then
return _Pain;
end

if not MaxDps:TargetAura(_VampiricTouch, timeShift) then
return _VampiricTouch;
end

if not talents[_WordVoid] and MaxDps:SpellAvailable(_MindBlast, timeShift) then
return _MindBlast;
end

if talents[_WordVoid] and MaxDps:SpellAvailable(_WordVoid, timeShift) then
return _WordVoid;
end

if talents[_DarkVoid] and MaxDps:SpellAvailable(_DarkVoid, timeShift) then
return _DarkVoid;
end


end


0 comments on commit 543cfa1

Please sign in to comment.