Skip to content

Commit

Permalink
give PoA a better chance of picking up win check by simply scanning A…
Browse files Browse the repository at this point in the history
…LL units instead of default units
  • Loading branch information
MysticalOS committed Nov 12, 2024
1 parent fd60e80 commit 3bee7aa
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions DBM-Challenges/Shadowlands/PoA_AlderynandMynir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat(
-- "SPELL_AURA_APPLIED_DOSE",
-- "SPELL_AURA_REMOVED",
-- "UNIT_DIED",
"UNIT_SPELLCAST_SUCCEEDED",
"UNIT_SPELLCAST_SUCCEEDED_UNFILTERED",
"CRITERIA_COMPLETE"
)

Expand Down Expand Up @@ -49,7 +49,7 @@ function mod:SPELL_CAST_START(args)
end
end

function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
function mod:UNIT_SPELLCAST_SUCCEEDED_UNFILTERED(uId, _, spellId)
if spellId == 333198 then--[DNT] Set World State: Win Encounter-
DBM:EndCombat(self)
end
Expand Down
4 changes: 2 additions & 2 deletions DBM-Challenges/Shadowlands/PoA_Athanos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat(
-- "SPELL_AURA_APPLIED_DOSE",
-- "SPELL_AURA_REMOVED",
-- "UNIT_DIED"
"UNIT_SPELLCAST_SUCCEEDED",
"UNIT_SPELLCAST_SUCCEEDED_UNFILTERED",
"CRITERIA_COMPLETE"
)

Expand Down Expand Up @@ -54,7 +54,7 @@ function mod:SPELL_CAST_START(args)
end
end

function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
function mod:UNIT_SPELLCAST_SUCCEEDED_UNFILTERED(uId, _, spellId)
if spellId == 333198 then--[DNT] Set World State: Win Encounter-
DBM:EndCombat(self)
end
Expand Down
4 changes: 2 additions & 2 deletions DBM-Challenges/Shadowlands/PoA_Azaruux.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat(
-- "SPELL_AURA_APPLIED_DOSE",
-- "SPELL_AURA_REMOVED",
-- "UNIT_DIED"
"UNIT_SPELLCAST_SUCCEEDED",
"UNIT_SPELLCAST_SUCCEEDED_UNFILTERED",
"CRITERIA_COMPLETE"
)

Expand All @@ -41,7 +41,7 @@ function mod:SPELL_CAST_START(args)
end
end

function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
function mod:UNIT_SPELLCAST_SUCCEEDED_UNFILTERED(uId, _, spellId)
if spellId == 333198 then--[DNT] Set World State: Win Encounter-
DBM:EndCombat(self)
end
Expand Down
4 changes: 2 additions & 2 deletions DBM-Challenges/Shadowlands/PoA_CravenCorinth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat(
-- "SPELL_AURA_APPLIED_DOSE",
-- "SPELL_AURA_REMOVED",
-- "UNIT_DIED"
"UNIT_SPELLCAST_SUCCEEDED",
"UNIT_SPELLCAST_SUCCEEDED_UNFILTERED",
"CRITERIA_COMPLETE"
)

Expand Down Expand Up @@ -63,7 +63,7 @@ function mod:SPELL_AURA_APPLIED(args)
end
end

function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
function mod:UNIT_SPELLCAST_SUCCEEDED_UNFILTERED(uId, _, spellId)
if spellId == 333198 then--[DNT] Set World State: Win Encounter-
DBM:EndCombat(self)
end
Expand Down
4 changes: 2 additions & 2 deletions DBM-Challenges/Shadowlands/PoA_Echthra.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod:SetWipeTime(30)

mod:RegisterEventsInCombat(
"SPELL_CAST_START 336096 336715 336709",
"UNIT_SPELLCAST_SUCCEEDED",
"UNIT_SPELLCAST_SUCCEEDED_UNFILTERED",
"CRITERIA_COMPLETE"
)

Expand Down Expand Up @@ -53,7 +53,7 @@ function mod:SPELL_CAST_START(args)
end
end

function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
function mod:UNIT_SPELLCAST_SUCCEEDED_UNFILTERED(uId, _, spellId)
if spellId == 333198 then--[DNT] Set World State: Win Encounter-
DBM:EndCombat(self)
end
Expand Down
4 changes: 2 additions & 2 deletions DBM-Challenges/Shadowlands/PoA_Kalisthene.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat(
-- "SPELL_AURA_APPLIED_DOSE",
-- "SPELL_AURA_REMOVED",
-- "UNIT_DIED"
"UNIT_SPELLCAST_SUCCEEDED",
"UNIT_SPELLCAST_SUCCEEDED_UNFILTERED",
"CRITERIA_COMPLETE"
)
local warnTetheringSpear = mod:NewSpellAnnounce(332985, 4)
Expand All @@ -43,7 +43,7 @@ function mod:SPELL_CAST_START(args)
end
end

function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
function mod:UNIT_SPELLCAST_SUCCEEDED_UNFILTERED(uId, _, spellId)
if spellId == 333198 then--[DNT] Set World State: Win Encounter-
DBM:EndCombat(self)
end
Expand Down
4 changes: 2 additions & 2 deletions DBM-Challenges/Shadowlands/PoA_MadMortimer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat(
-- "SPELL_AURA_APPLIED_DOSE",
-- "SPELL_AURA_REMOVED",
-- "UNIT_DIED"
"UNIT_SPELLCAST_SUCCEEDED",
"UNIT_SPELLCAST_SUCCEEDED_UNFILTERED",
"CRITERIA_COMPLETE"
)

Expand All @@ -27,7 +27,7 @@ mod:RegisterEventsInCombat(
-- berserkTimer:Start(100-delay)
--end

function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
function mod:UNIT_SPELLCAST_SUCCEEDED_UNFILTERED(uId, _, spellId)
if spellId == 333198 then--[DNT] Set World State: Win Encounter-
DBM:EndCombat(self)
end
Expand Down
4 changes: 2 additions & 2 deletions DBM-Challenges/Shadowlands/PoA_Nuuminuuru.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mod:SetWipeTime(30)
mod:RegisterEventsInCombat(
"SPELL_CAST_START 345680",
"SPELL_CAST_SUCCESS 345441",
"UNIT_SPELLCAST_SUCCEEDED",
"UNIT_SPELLCAST_SUCCEEDED_UNFILTERED",
"CRITERIA_COMPLETE"
)

Expand Down Expand Up @@ -50,7 +50,7 @@ function mod:SPELL_CAST_SUCCESS(args)
end
end

function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
function mod:UNIT_SPELLCAST_SUCCEEDED_UNFILTERED(uId, _, spellId)
if spellId == 333198 or spellId == 348955 then--[DNT] Set World State: Win Encounter-/Kill Credit to Player Only
DBM:EndCombat(self)
elseif spellId == 345685 and self:AntiSpam(3, 1) then
Expand Down
4 changes: 2 additions & 2 deletions DBM-Challenges/Shadowlands/PoA_Splinterbark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat(
-- "SPELL_AURA_APPLIED_DOSE",
-- "SPELL_AURA_REMOVED",
-- "UNIT_DIED"
"UNIT_SPELLCAST_SUCCEEDED",
"UNIT_SPELLCAST_SUCCEEDED_UNFILTERED",
"CRITERIA_COMPLETE"
)

Expand All @@ -37,7 +37,7 @@ function mod:SPELL_AURA_APPLIED(args)
end
end

function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
function mod:UNIT_SPELLCAST_SUCCEEDED_UNFILTERED(uId, _, spellId)
if spellId == 333198 then--[DNT] Set World State: Win Encounter-
DBM:EndCombat(self)
end
Expand Down
4 changes: 2 additions & 2 deletions DBM-Challenges/Shadowlands/PoA_Thrantiok.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat(
-- "SPELL_AURA_APPLIED_DOSE",
-- "SPELL_AURA_REMOVED",
-- "UNIT_DIED"
"UNIT_SPELLCAST_SUCCEEDED",
"UNIT_SPELLCAST_SUCCEEDED_UNFILTERED",
"CRITERIA_COMPLETE"
)

Expand All @@ -27,7 +27,7 @@ mod:RegisterEventsInCombat(
-- berserkTimer:Start(100-delay)
--end

function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
function mod:UNIT_SPELLCAST_SUCCEEDED_UNFILTERED(uId, _, spellId)
if spellId == 333198 then--[DNT] Set World State: Win Encounter-
DBM:EndCombat(self)
end
Expand Down

0 comments on commit 3bee7aa

Please sign in to comment.