Skip to content

Commit

Permalink
Update rotation.lua
Browse files Browse the repository at this point in the history
-Fixed bug with divine hammer. Addon should now properly recommend divine hammer only when off CD.
  • Loading branch information
trukadukbwr authored Mar 24, 2023
1 parent 2b73e05 commit 2b8679c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CLCRet/retmodule/rotation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ local idBoJ2 = 383342
local idJudgment2 = 405278
local idHoW2 = 383314
local idTemplarSlash = 406647
local idDivineHammer = 198034

-- talents, makes passive
local idCrusadingStrikes = 404542
Expand Down Expand Up @@ -312,9 +313,14 @@ local actions = {
cons = {
id = idConsecration,
GetCD = function()
if (s1 ~= idConsecration) and IsSpellKnownOrOverridesKnown(idConsecration) and (not(IsUsableSpell(idTemplarsVerdict))) and (not(IsPlayerSpell(idConsecratedBlade))) then
if (s1 ~= idConsecration) and IsSpellKnownOrOverridesKnown(idConsecration) and (not(IsUsableSpell(idTemplarsVerdict))) and (not(IsPlayerSpell(idConsecratedBlade))) and (not(IsPlayerSpell(idDivineHammer))) then
return GetCooldown(idConsecration)
end

if (s1 ~= idConsecration) and IsSpellKnownOrOverridesKnown(idConsecration) and (not(IsUsableSpell(idTemplarsVerdict))) and (not(IsPlayerSpell(idConsecratedBlade))) and IsPlayerSpell(idDivineHammer) then
return GetCooldown(idDivineHammer)
end

return 100
end,
UpdateStatus = function()
Expand Down Expand Up @@ -1149,4 +1155,4 @@ end
ef:SetScript("OnEvent", OnEvent)
ef:RegisterEvent("PLAYER_ENTERING_WORLD")
ef:RegisterEvent("PLAYER_TALENT_UPDATE")
ef:RegisterEvent("PLAYER_LEVEL_UP")
ef:RegisterEvent("PLAYER_LEVEL_UP")

0 comments on commit 2b8679c

Please sign in to comment.