From 7b4c532f367b38b7967e73a412eeb768ce24619b Mon Sep 17 00:00:00 2001 From: Voudu Date: Sun, 11 Feb 2024 15:59:09 -0500 Subject: [PATCH] add SoD blood surge --- ClassicSpellActivations.lua | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/ClassicSpellActivations.lua b/ClassicSpellActivations.lua index 1eecd9f..7ca409e 100644 --- a/ClassicSpellActivations.lua +++ b/ClassicSpellActivations.lua @@ -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 } @@ -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") @@ -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 @@ -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")