From 3bee7aa2a242c2b5df827bdb69f1705d3adae88f Mon Sep 17 00:00:00 2001 From: MysticalOS Date: Tue, 12 Nov 2024 03:34:09 -0500 Subject: [PATCH] give PoA a better chance of picking up win check by simply scanning ALL units instead of default units --- DBM-Challenges/Shadowlands/PoA_AlderynandMynir.lua | 4 ++-- DBM-Challenges/Shadowlands/PoA_Athanos.lua | 4 ++-- DBM-Challenges/Shadowlands/PoA_Azaruux.lua | 4 ++-- DBM-Challenges/Shadowlands/PoA_CravenCorinth.lua | 4 ++-- DBM-Challenges/Shadowlands/PoA_Echthra.lua | 4 ++-- DBM-Challenges/Shadowlands/PoA_Kalisthene.lua | 4 ++-- DBM-Challenges/Shadowlands/PoA_MadMortimer.lua | 4 ++-- DBM-Challenges/Shadowlands/PoA_Nuuminuuru.lua | 4 ++-- DBM-Challenges/Shadowlands/PoA_Splinterbark.lua | 4 ++-- DBM-Challenges/Shadowlands/PoA_Thrantiok.lua | 4 ++-- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/DBM-Challenges/Shadowlands/PoA_AlderynandMynir.lua b/DBM-Challenges/Shadowlands/PoA_AlderynandMynir.lua index 6e5bbfc..fbeeabf 100644 --- a/DBM-Challenges/Shadowlands/PoA_AlderynandMynir.lua +++ b/DBM-Challenges/Shadowlands/PoA_AlderynandMynir.lua @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat( -- "SPELL_AURA_APPLIED_DOSE", -- "SPELL_AURA_REMOVED", -- "UNIT_DIED", - "UNIT_SPELLCAST_SUCCEEDED", + "UNIT_SPELLCAST_SUCCEEDED_UNFILTERED", "CRITERIA_COMPLETE" ) @@ -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 diff --git a/DBM-Challenges/Shadowlands/PoA_Athanos.lua b/DBM-Challenges/Shadowlands/PoA_Athanos.lua index 20a4073..969e33b 100644 --- a/DBM-Challenges/Shadowlands/PoA_Athanos.lua +++ b/DBM-Challenges/Shadowlands/PoA_Athanos.lua @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat( -- "SPELL_AURA_APPLIED_DOSE", -- "SPELL_AURA_REMOVED", -- "UNIT_DIED" - "UNIT_SPELLCAST_SUCCEEDED", + "UNIT_SPELLCAST_SUCCEEDED_UNFILTERED", "CRITERIA_COMPLETE" ) @@ -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 diff --git a/DBM-Challenges/Shadowlands/PoA_Azaruux.lua b/DBM-Challenges/Shadowlands/PoA_Azaruux.lua index 973f251..9eebe69 100644 --- a/DBM-Challenges/Shadowlands/PoA_Azaruux.lua +++ b/DBM-Challenges/Shadowlands/PoA_Azaruux.lua @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat( -- "SPELL_AURA_APPLIED_DOSE", -- "SPELL_AURA_REMOVED", -- "UNIT_DIED" - "UNIT_SPELLCAST_SUCCEEDED", + "UNIT_SPELLCAST_SUCCEEDED_UNFILTERED", "CRITERIA_COMPLETE" ) @@ -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 diff --git a/DBM-Challenges/Shadowlands/PoA_CravenCorinth.lua b/DBM-Challenges/Shadowlands/PoA_CravenCorinth.lua index 20c14c5..589c91b 100644 --- a/DBM-Challenges/Shadowlands/PoA_CravenCorinth.lua +++ b/DBM-Challenges/Shadowlands/PoA_CravenCorinth.lua @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat( -- "SPELL_AURA_APPLIED_DOSE", -- "SPELL_AURA_REMOVED", -- "UNIT_DIED" - "UNIT_SPELLCAST_SUCCEEDED", + "UNIT_SPELLCAST_SUCCEEDED_UNFILTERED", "CRITERIA_COMPLETE" ) @@ -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 diff --git a/DBM-Challenges/Shadowlands/PoA_Echthra.lua b/DBM-Challenges/Shadowlands/PoA_Echthra.lua index f89fa71..b93ef2f 100644 --- a/DBM-Challenges/Shadowlands/PoA_Echthra.lua +++ b/DBM-Challenges/Shadowlands/PoA_Echthra.lua @@ -13,7 +13,7 @@ mod:SetWipeTime(30) mod:RegisterEventsInCombat( "SPELL_CAST_START 336096 336715 336709", - "UNIT_SPELLCAST_SUCCEEDED", + "UNIT_SPELLCAST_SUCCEEDED_UNFILTERED", "CRITERIA_COMPLETE" ) @@ -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 diff --git a/DBM-Challenges/Shadowlands/PoA_Kalisthene.lua b/DBM-Challenges/Shadowlands/PoA_Kalisthene.lua index d0615b2..bdd1746 100644 --- a/DBM-Challenges/Shadowlands/PoA_Kalisthene.lua +++ b/DBM-Challenges/Shadowlands/PoA_Kalisthene.lua @@ -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) @@ -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 diff --git a/DBM-Challenges/Shadowlands/PoA_MadMortimer.lua b/DBM-Challenges/Shadowlands/PoA_MadMortimer.lua index 60ec73f..4891e18 100644 --- a/DBM-Challenges/Shadowlands/PoA_MadMortimer.lua +++ b/DBM-Challenges/Shadowlands/PoA_MadMortimer.lua @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat( -- "SPELL_AURA_APPLIED_DOSE", -- "SPELL_AURA_REMOVED", -- "UNIT_DIED" - "UNIT_SPELLCAST_SUCCEEDED", + "UNIT_SPELLCAST_SUCCEEDED_UNFILTERED", "CRITERIA_COMPLETE" ) @@ -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 diff --git a/DBM-Challenges/Shadowlands/PoA_Nuuminuuru.lua b/DBM-Challenges/Shadowlands/PoA_Nuuminuuru.lua index 9824f36..8f50d41 100644 --- a/DBM-Challenges/Shadowlands/PoA_Nuuminuuru.lua +++ b/DBM-Challenges/Shadowlands/PoA_Nuuminuuru.lua @@ -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" ) @@ -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 diff --git a/DBM-Challenges/Shadowlands/PoA_Splinterbark.lua b/DBM-Challenges/Shadowlands/PoA_Splinterbark.lua index 2b6ddda..f2daac2 100644 --- a/DBM-Challenges/Shadowlands/PoA_Splinterbark.lua +++ b/DBM-Challenges/Shadowlands/PoA_Splinterbark.lua @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat( -- "SPELL_AURA_APPLIED_DOSE", -- "SPELL_AURA_REMOVED", -- "UNIT_DIED" - "UNIT_SPELLCAST_SUCCEEDED", + "UNIT_SPELLCAST_SUCCEEDED_UNFILTERED", "CRITERIA_COMPLETE" ) @@ -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 diff --git a/DBM-Challenges/Shadowlands/PoA_Thrantiok.lua b/DBM-Challenges/Shadowlands/PoA_Thrantiok.lua index 8cb3487..509b517 100644 --- a/DBM-Challenges/Shadowlands/PoA_Thrantiok.lua +++ b/DBM-Challenges/Shadowlands/PoA_Thrantiok.lua @@ -17,7 +17,7 @@ mod:RegisterEventsInCombat( -- "SPELL_AURA_APPLIED_DOSE", -- "SPELL_AURA_REMOVED", -- "UNIT_DIED" - "UNIT_SPELLCAST_SUCCEEDED", + "UNIT_SPELLCAST_SUCCEEDED_UNFILTERED", "CRITERIA_COMPLETE" ) @@ -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