Skip to content

Commit

Permalink
Merge pull request #23 from Voudu/master
Browse files Browse the repository at this point in the history
add SoD blood surge
  • Loading branch information
d87 authored Feb 11, 2024
2 parents 546ffe8 + 7b4c532 commit 4f42bc8
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions ClassicSpellActivations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ end
local runeSpells = {
-- [403470] = 402927
["VictoryRush"] = 402927,
[402927] = 403470 -- spell ID = engraving ID
[402927] = 403470, -- spell ID = engraving ID
["BloodSurgeSoD"] = 413380,
[413380] = 416004
}


Expand Down Expand Up @@ -514,6 +516,15 @@ local CheckBloodsurge = OnAuraStateChange(function() return FindAura("player", 4
end
end
)
local CheckBloodsurgeSoD = OnAuraStateChange(function() return FindAura("player", 413399, "HELPFUL") end,
function(present, duration)
if present then
f:Activate("Slam", "BloodSurgeSoD", duration, true)
else
f:Deactivate("Slam", "BloodSurgeSoD")
end
end
)

ns.configs.WARRIOR = function(self)
self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
Expand Down Expand Up @@ -577,7 +588,8 @@ ns.configs.WARRIOR = function(self)
local hasSuddenDeathTalent = IsPlayerSpell(29723) or IsPlayerSpell(29725) or IsPlayerSpell(29724)
local hasSwordAndBoardTalent = IsPlayerSpell(46951) or IsPlayerSpell(46952) or IsPlayerSpell(46953)
local hasBloodsurgeTalent = IsPlayerSpell(46913) or IsPlayerSpell(46914) or IsPlayerSpell(46915)
if hasTasteForBloodTalent or hasSuddenDeathTalent or hasSwordAndBoardTalent or hasBloodsurgeTalent then
local hasBloodsurgeEngraving = ns.findHighestRank("BloodSurgeSoD")
if hasTasteForBloodTalent or hasSuddenDeathTalent or hasSwordAndBoardTalent or hasBloodsurgeTalent or hasBloodsurgeEngraving then
self:RegisterUnitEvent("UNIT_AURA", "player")
self.UNIT_AURA = function(self, event, unit)
if hasTasteForBloodTalent then
Expand All @@ -592,6 +604,9 @@ ns.configs.WARRIOR = function(self)
if hasBloodsurgeTalent then
CheckBloodsurge()
end
if hasBloodsurgeEngraving then -- Season of Discovery
CheckBloodsurgeSoD()
end
end
else
self:UnregisterEvent("UNIT_AURA")
Expand Down

0 comments on commit 4f42bc8

Please sign in to comment.