Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Add some avoidable debuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
onechiporenko committed Dec 27, 2022
1 parent f88769f commit 24a7ca5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,7 @@
* Update list of bosses and adds for DF S1 dungeons
* Add Spells to interrupt for DF S1 dungeons
* Add avoidable damage for DF S1 dungeons
* Add some avoidable debuffs

### v2.26.0

Expand Down
16 changes: 15 additions & 1 deletion Mechanics/Spells.lua
Expand Up @@ -17,6 +17,7 @@ local Spells = {

-- Temple of the Jade Serpent
[107053] = true,
[395859] = true,
[396907] = true,
[397785] = true,
[397793] = true,
Expand Down Expand Up @@ -52,6 +53,7 @@ local Spells = {

-- Shadowmoon Burial Grounds
[152690] = true,
[152800] = true,
[152819] = true,
[153224] = true,
[154442] = true,
Expand Down Expand Up @@ -91,6 +93,7 @@ local Spells = {
[209410] = true,
[209378] = true,
[209413] = true,
[211391] = true,

-- Darkheart Thicket
[191326] = true, -- Breath of Corruption
Expand Down Expand Up @@ -740,6 +743,7 @@ local SpellsNoTank = {

-- Shadowmoon Burial Grounds
[153089] = true,
[153501] = true,
[153485] = true,
[153680] = true,
[164907] = true,
Expand Down Expand Up @@ -779,13 +783,15 @@ local SpellsNoTank = {
[196111] = true, -- Jagged Claws

-- Halls of Valor
[199151] = true,
[185425] = true,
[192018] = true,
[193092] = true,
[193668] = true,
[198944] = true,
[199151] = true,
[199177] = true,
[199772] = true,
[199652] = true,

-- Neltharion's Lair
[198496] = true, -- Sunder
Expand Down Expand Up @@ -1049,6 +1055,10 @@ local Auras = {
-- Grimrail Depot
[166340] = true,

-- Shadowmoon Burial Grounds
[158061] = true,
[398150] = true,

----------------
---- LEGION ----
----------------
Expand Down Expand Up @@ -1299,6 +1309,7 @@ local SpellsToInterrupt = {
[210261] = true, -- Sound Alarm (Duskwatch Reinforcement)
[211299] = true, -- Searing Glare (Watchful Inquisitor)
[211470] = true, -- Bewitch (Shadow Mistress)
[212773] = true,
[215204] = true, -- Hinder (Vigilant Duskwatch)
[225100] = true, -- Charging Station (Guardian Construct)

Expand Down Expand Up @@ -1943,6 +1954,9 @@ local DamageDoneToSpecificUnits = {
[104218] = {
type = "BOSS",
},
[104918] = {
type = "ADD",
},

-- Halls of Valor
[94960] = {
Expand Down
4 changes: 4 additions & 0 deletions Utils/Utils.lua
Expand Up @@ -812,12 +812,16 @@ function MyDungeonsBook:IsSpellAvoidableForPartyMember(challengeId, unitId, spel
local avoidableAuras = self:GetAvoidableAuras();
local avoidableSpellsNoTank = self:GetAvoidableSpellsNoTank();
local avoidableAurasNoTank = self:GetAvoidableAurasNoTank();
local spellsToInterrupt = self:GetSpellsToInterrupt();
if (avoidableSpells[spellId] or (avoidableSpellsNoTank[spellId] and role ~= "TANK")) then
return true;
end
if (avoidableAuras[spellId] or (avoidableAurasNoTank[spellId] and role ~= "TANK")) then
return true;
end
if (spellsToInterrupt[spellId]) then
return true;
end
return false;
end

Expand Down

0 comments on commit 24a7ca5

Please sign in to comment.