From e5091490e878cac9750bc7da0c413654b4663197 Mon Sep 17 00:00:00 2001 From: d87 Date: Mon, 8 Apr 2024 07:43:48 +0700 Subject: [PATCH] Added Taste For Blood and Brain Freeze for SoD --- ClassicSpellActivations-Classic.toc | 2 +- ClassicSpellActivations.lua | 33 ++++++++++++++++++++++++++++- ClassicSpellActivations.toc | 2 +- 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/ClassicSpellActivations-Classic.toc b/ClassicSpellActivations-Classic.toc index 4c29e23..dc31e1e 100644 --- a/ClassicSpellActivations-Classic.toc +++ b/ClassicSpellActivations-Classic.toc @@ -1,4 +1,4 @@ -## Interface: 11401 +## Interface: 11502 ## Title: ClassicSpellActivations ## Notes: Shows you the shiny ## Author: d87 diff --git a/ClassicSpellActivations.lua b/ClassicSpellActivations.lua index 9109558..7fac04a 100644 --- a/ClassicSpellActivations.lua +++ b/ClassicSpellActivations.lua @@ -78,7 +78,8 @@ AddSpellName("ShieldSlam", 47488, 47487, 30356, 25258, 23925, 23924, 23923, 2392 AddSpellName("ArcaneMissiles", 42846, 42843, 38704, 38699, 27075, 25345, 10212, 10211, 8417, 8416, 5145, 5144, 5143) AddSpellName("FrostBolt", 42842, 42841, 38697, 27072, 27071, 25304, 10181, 10180, 10179, 8408, 8407, 8406, 7322, 837, 205, 116) AddSpellName("IceLance", 42914, 42913, 30455) -AddSpellName("FrostfireBolt", 47610, 44614 ) +AddSpellName("FrostfireBolt", 47610, 44614, 401502 ) -- 401502 - SoD rune +AddSpellName("SpellfrostBolt", 412532 ) -- SoD Rune AddSpellName("Fireball", 42833, 42832, 38692, 27070, 25306, 10151, 10150, 10149, 10148, 8402, 8401, 8400, 3140, 145, 143, 133) AddSpellName("Pyroblast", 42891, 42890, 33938, 27132, 18809, 12526, 12525, 12524, 12523, 12522, 12505, 11366) AddSpellName("Flamestrike", 42926, 42925, 27086, 10216, 10215, 8423, 8422, 2121, 2120) @@ -492,6 +493,15 @@ function ns.CheckRampage(eventType, isSrcPlayer, isDstPlayer, ...) end end +local CheckTasteForBloodSoD = OnAuraStateChange(function() return FindAura("player", 426969, "HELPFUL") end, + function(present, duration) + if present then + f:Activate("Overpower", "TasteForBlood", duration, true) + else + f:Deactivate("Overpower", "TasteForBlood") + end + end +) local CheckTasteForBlood = OnAuraStateChange(function() return FindAura("player", 60503, "HELPFUL") end, function(present, duration) if present then @@ -602,6 +612,7 @@ ns.configs.WARRIOR = function(self) local hasBloodsurgeTalent = IsPlayerSpell(46913) or IsPlayerSpell(46914) or IsPlayerSpell(46915) -- local hasBloodsurgeEngraving = ns.findHighestRank("BloodSurgeSoD") local hasBloodsurgeEngraving = APILevel == 1 + local hasTasteForBloodRune = APILevel == 1 if hasTasteForBloodTalent or hasSuddenDeathTalent or hasSwordAndBoardTalent or hasBloodsurgeTalent or hasBloodsurgeEngraving then self:RegisterUnitEvent("UNIT_AURA", "player") self.UNIT_AURA = function(self, event, unit) @@ -620,6 +631,9 @@ ns.configs.WARRIOR = function(self) if hasBloodsurgeEngraving then -- Season of Discovery CheckBloodsurgeSoD() end + if hasTasteForBloodRune then -- Season of Discovery + CheckTasteForBloodSoD() + end end else self:UnregisterEvent("UNIT_AURA") @@ -1115,6 +1129,19 @@ if APILevel == 3 then end end ) + local CheckBrainFreezeSoD = OnAuraStateChange(function() return FindAura("player", 400730, "HELPFUL") end, + function(present, duration) + if present then + f:Activate("Fireball", "BrainFreeze", duration, true) + f:Activate("FrostfireBolt", "BrainFreeze", duration, true) + f:Activate("SpellfrostBolt", "BrainFreeze", duration, true) + else + f:Deactivate("Fireball", "BrainFreeze") + f:Deactivate("FrostfireBolt", "BrainFreeze") + f:Deactivate("SpellfrostBolt", "BrainFreeze") + end + end + ) local CheckHotStreak = OnAuraStateChange(function() return FindAura("player", 48108, "HELPFUL") end, function(present, duration) if present then @@ -1140,6 +1167,7 @@ if APILevel == 3 then local hasBrainFreeze = IsPlayerSpell(44546) or IsPlayerSpell(44548) or IsPlayerSpell(44549) local hasHotStreak = IsPlayerSpell(44445) or IsPlayerSpell(44446) or IsPlayerSpell(44448) local hasFirestarter = IsPlayerSpell(44442) or IsPlayerSpell(44443) + local hasBrainFreezeSoD = APILevel == 1 -- if hasFingersOfFrost then @@ -1161,6 +1189,9 @@ if APILevel == 3 then if hasFirestarter then CheckFirestarter() end + if hasBrainFreezeSoD then + CheckBrainFreezeSoD() + end end -- else -- self:SetScript("OnUpdate", nil) diff --git a/ClassicSpellActivations.toc b/ClassicSpellActivations.toc index 4c29e23..dc31e1e 100644 --- a/ClassicSpellActivations.toc +++ b/ClassicSpellActivations.toc @@ -1,4 +1,4 @@ -## Interface: 11401 +## Interface: 11502 ## Title: ClassicSpellActivations ## Notes: Shows you the shiny ## Author: d87