Skip to content

Commit

Permalink
Added Taste For Blood and Brain Freeze for SoD
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Apr 8, 2024
1 parent a6b3bf8 commit e509149
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ClassicSpellActivations-Classic.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 11401
## Interface: 11502
## Title: ClassicSpellActivations
## Notes: Shows you the shiny
## Author: d87
Expand Down
33 changes: 32 additions & 1 deletion ClassicSpellActivations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -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")
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand All @@ -1161,6 +1189,9 @@ if APILevel == 3 then
if hasFirestarter then
CheckFirestarter()
end
if hasBrainFreezeSoD then
CheckBrainFreezeSoD()
end
end
-- else
-- self:SetScript("OnUpdate", nil)
Expand Down
2 changes: 1 addition & 1 deletion ClassicSpellActivations.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 11401
## Interface: 11502
## Title: ClassicSpellActivations
## Notes: Shows you the shiny
## Author: d87
Expand Down

0 comments on commit e509149

Please sign in to comment.