Skip to content

Commit c6f7015

Browse files
committed
Prevent loading of options on 74 boss mods on retail (they'll still load and record stats). This is the number of dungeon, delve, and scenario bosses that blizzard doesn't support with boss mod api
1 parent b38682e commit c6f7015

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+8929
-8855
lines changed

DBM-Pandaria/Anger.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ local mod = DBM:NewMod(691, "DBM-Pandaria", nil, 322)
22
local L = mod:GetLocalizedStrings()
33

44
mod:SetRevision("@file-date-integer@")
5+
mod:DisableHardcodedOptions()
56
mod:SetCreatureID(60491)
67
mod:SetEncounterID(1564)
78
mod:SetReCombatTime(20, 10)

DBM-Pandaria/ChiJi.lua

Lines changed: 75 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,75 @@
1-
local mod = DBM:NewMod(857, "DBM-Pandaria", nil, 322, 1)
2-
local L = mod:GetLocalizedStrings()
3-
4-
mod:SetRevision("@file-date-integer@")
5-
mod:SetCreatureID(71952)
6-
mod:SetReCombatTime(20)
7-
mod:EnableWBEngageSync()--Enable syncing engage in outdoors
8-
9-
mod:RegisterCombat("combat_yell", L.Pull)
10-
mod:RegisterKill("yell", L.Victory)
11-
12-
mod:RegisterEventsInCombat(
13-
"SPELL_CAST_START 144468 144471 144470 144473 144461",
14-
"UNIT_SPELLCAST_SUCCEEDED target focus"
15-
)
16-
17-
local warnFirestorm = mod:NewSpellAnnounce(144461, 2, nil, false)
18-
19-
local specWarnInspiringSong = mod:NewSpecialWarningInterrupt(144468, nil, nil, nil, 1, 2)
20-
local specWarnBeaconOfHope = mod:NewSpecialWarningMoveTo(144473, nil, nil, nil, 1, 2)
21-
local specWarnBlazingSong = mod:NewSpecialWarningSpell(144471, nil, nil, nil, 3, 2)
22-
local specWarnCraneRush = mod:NewSpecialWarningDodge(144470, nil, nil, nil, 2, 2)
23-
24-
local timerInspiringSongCD = mod:NewCDTimer(30, 144468, nil, nil, nil, 4, nil, DBM_COMMON_L.INTERRUPT_ICON)--30-50sec variation?
25-
local timerBlazingSong = mod:NewBuffActiveTimer(15, 144471, nil, nil, nil, 2, nil, DBM_COMMON_L.DEADLY_ICON)
26-
27-
mod:AddReadyCheckOption(33117, false, 90)
28-
29-
function mod:BeaconTarget(targetname, uId)
30-
if not targetname then return end
31-
specWarnBeaconOfHope:Show(targetname)
32-
specWarnBeaconOfHope:Play("findshelter")
33-
end
34-
35-
function mod:OnCombatStart(delay, yellTriggered)
36-
if yellTriggered then--We know for sure this is an actual pull and not diving into in progress
37-
timerInspiringSongCD:Start(20-delay)
38-
end
39-
end
40-
41-
function mod:SPELL_CAST_START(args)
42-
local spellId = args.spellId
43-
if spellId == 144468 then
44-
if self:CheckInterruptFilter(args.sourceGUID, false, true) then
45-
specWarnInspiringSong:Show(args.sourceName)
46-
specWarnInspiringSong:Play("kickcast")
47-
end
48-
timerInspiringSongCD:Start()
49-
elseif spellId == 144471 then
50-
specWarnBlazingSong:Show()
51-
specWarnBlazingSong:Play("aesoon")
52-
timerBlazingSong:Start()
53-
elseif spellId == 144470 then
54-
specWarnCraneRush:Show()
55-
specWarnCraneRush:Play("watchstep")
56-
elseif spellId == 144473 then
57-
self:BossTargetScanner(args.sourceGUID, "BeaconTarget", 0.1, 20, nil, nil, nil, nil, true)--Only announce non tanks
58-
elseif spellId == 144461 then
59-
warnFirestorm:Show()
60-
end
61-
end
62-
63-
--This method works without local and doesn't fail with curse of tongues. However, it requires at least ONE person in raid targeting boss to be running dbm (which SHOULD be most of the time)
64-
function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
65-
if spellId == 148318 or spellId == 148317 or spellId == 149304 and self:AntiSpam(3, 2) then--use all 3 because i'm not sure which ones fire on repeat kills
66-
self:SendSync("Victory")
67-
end
68-
end
69-
70-
function mod:OnSync(msg)
71-
if msg == "Victory" and self:IsInCombat() then
72-
DBM:EndCombat(self)
73-
end
74-
end
1+
local mod = DBM:NewMod(857, "DBM-Pandaria", nil, 322, 1)
2+
local L = mod:GetLocalizedStrings()
3+
4+
mod:SetRevision("@file-date-integer@")
5+
mod:DisableHardcodedOptions()
6+
mod:SetCreatureID(71952)
7+
mod:SetReCombatTime(20)
8+
mod:EnableWBEngageSync()--Enable syncing engage in outdoors
9+
10+
mod:RegisterCombat("combat_yell", L.Pull)
11+
mod:RegisterKill("yell", L.Victory)
12+
13+
mod:RegisterEventsInCombat(
14+
"SPELL_CAST_START 144468 144471 144470 144473 144461",
15+
"UNIT_SPELLCAST_SUCCEEDED target focus"
16+
)
17+
18+
local warnFirestorm = mod:NewSpellAnnounce(144461, 2, nil, false)
19+
20+
local specWarnInspiringSong = mod:NewSpecialWarningInterrupt(144468, nil, nil, nil, 1, 2)
21+
local specWarnBeaconOfHope = mod:NewSpecialWarningMoveTo(144473, nil, nil, nil, 1, 2)
22+
local specWarnBlazingSong = mod:NewSpecialWarningSpell(144471, nil, nil, nil, 3, 2)
23+
local specWarnCraneRush = mod:NewSpecialWarningDodge(144470, nil, nil, nil, 2, 2)
24+
25+
local timerInspiringSongCD = mod:NewCDTimer(30, 144468, nil, nil, nil, 4, nil, DBM_COMMON_L.INTERRUPT_ICON)--30-50sec variation?
26+
local timerBlazingSong = mod:NewBuffActiveTimer(15, 144471, nil, nil, nil, 2, nil, DBM_COMMON_L.DEADLY_ICON)
27+
28+
mod:AddReadyCheckOption(33117, false, 90)
29+
30+
function mod:BeaconTarget(targetname, uId)
31+
if not targetname then return end
32+
specWarnBeaconOfHope:Show(targetname)
33+
specWarnBeaconOfHope:Play("findshelter")
34+
end
35+
36+
function mod:OnCombatStart(delay, yellTriggered)
37+
if yellTriggered then--We know for sure this is an actual pull and not diving into in progress
38+
timerInspiringSongCD:Start(20-delay)
39+
end
40+
end
41+
42+
function mod:SPELL_CAST_START(args)
43+
local spellId = args.spellId
44+
if spellId == 144468 then
45+
if self:CheckInterruptFilter(args.sourceGUID, false, true) then
46+
specWarnInspiringSong:Show(args.sourceName)
47+
specWarnInspiringSong:Play("kickcast")
48+
end
49+
timerInspiringSongCD:Start()
50+
elseif spellId == 144471 then
51+
specWarnBlazingSong:Show()
52+
specWarnBlazingSong:Play("aesoon")
53+
timerBlazingSong:Start()
54+
elseif spellId == 144470 then
55+
specWarnCraneRush:Show()
56+
specWarnCraneRush:Play("watchstep")
57+
elseif spellId == 144473 then
58+
self:BossTargetScanner(args.sourceGUID, "BeaconTarget", 0.1, 20, nil, nil, nil, nil, true)--Only announce non tanks
59+
elseif spellId == 144461 then
60+
warnFirestorm:Show()
61+
end
62+
end
63+
64+
--This method works without local and doesn't fail with curse of tongues. However, it requires at least ONE person in raid targeting boss to be running dbm (which SHOULD be most of the time)
65+
function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
66+
if spellId == 148318 or spellId == 148317 or spellId == 149304 and self:AntiSpam(3, 2) then--use all 3 because i'm not sure which ones fire on repeat kills
67+
self:SendSync("Victory")
68+
end
69+
end
70+
71+
function mod:OnSync(msg)
72+
if msg == "Victory" and self:IsInCombat() then
73+
DBM:EndCombat(self)
74+
end
75+
end

DBM-Pandaria/Nalak.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ local mod = DBM:NewMod(814, "DBM-Pandaria", nil, 322)
22
local L = mod:GetLocalizedStrings()
33

44
mod:SetRevision("@file-date-integer@")
5+
mod:DisableHardcodedOptions()
56
mod:SetCreatureID(69099)
67
mod:SetEncounterID(1571)
78
mod:SetReCombatTime(20, 10)

DBM-Pandaria/Niuzao.lua

Lines changed: 85 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,85 @@
1-
local mod = DBM:NewMod(859, "DBM-Pandaria", nil, 322, 1)
2-
local L = mod:GetLocalizedStrings()
3-
4-
mod:SetRevision("@file-date-integer@")
5-
mod:SetCreatureID(71954)
6-
mod:SetReCombatTime(20)
7-
mod:EnableWBEngageSync()--Enable syncing engage in outdoors
8-
9-
mod:RegisterCombat("combat_yell", L.Pull)
10-
mod:RegisterKill("yell", L.Victory, L.VictoryDem)
11-
12-
mod:RegisterEventsInCombat(
13-
"SPELL_CAST_START 144610 144611 144608",
14-
"SPELL_AURA_APPLIED 144606",
15-
"SPELL_AURA_APPLIED_DOSE 144606",
16-
"UNIT_SPELLCAST_SUCCEEDED target focus"
17-
)
18-
19-
local warnOxenFortitude = mod:NewStackAnnounce(144606, 2, nil, false)--144607 player version, but better to just track boss and announce stacks
20-
21-
local specWarnHeadbutt = mod:NewSpecialWarningDefensive(144610, nil, nil, nil, 1, 2)
22-
local specWarnHeadbuttTaunt = mod:NewSpecialWarningTaunt(144610, nil, nil, nil, 1, 2)
23-
local specWarnMassiveQuake = mod:NewSpecialWarningSpell(144611, nil, nil, nil, 2, 2)
24-
local specWarnCharge = mod:NewSpecialWarningDodge(144609, "Melee", nil, nil, 2, 2)--66 and 33%. Maybe add pre warns
25-
26-
local timerHeadbuttCD = mod:NewCDTimer(47, 144610, nil, "Tank", nil, 5, nil, DBM_COMMON_L.TANK_ICON)
27-
local timerMassiveQuake = mod:NewBuffActiveTimer(13, 144611, nil, nil, nil, 5, nil, DBM_COMMON_L.HEALER_ICON)
28-
local timerMassiveQuakeCD = mod:NewCDTimer(48, 144611, nil, nil, nil, 2)
29-
30-
mod:AddReadyCheckOption(33117, false, 90)
31-
32-
function mod:OnCombatStart(delay, yellTriggered)
33-
if yellTriggered then
34-
timerHeadbuttCD:Start(16-delay)
35-
timerMassiveQuakeCD:Start(45-delay)
36-
end
37-
end
38-
39-
function mod:SPELL_CAST_START(args)
40-
local spellId = args.spellId
41-
if spellId == 144610 then
42-
if self:IsTanking("player", nil, nil, true, args.sourceGUID) then
43-
specWarnHeadbutt:Show()
44-
specWarnHeadbutt:Play("carefly")
45-
else
46-
local bossTarget, bossTargetUID = self:GetBossTarget(71954)
47-
if bossTargetUID then
48-
if self:IsTanking(bossTargetUID, nil, nil, true, args.sourceGUID) then
49-
specWarnHeadbuttTaunt:Show(bossTarget or DBM_COMMON_L.UNKNOWN)
50-
specWarnHeadbuttTaunt:Play("tauntboss")
51-
end
52-
end
53-
end
54-
timerHeadbuttCD:Start()
55-
elseif spellId == 144611 then
56-
specWarnMassiveQuake:Show()
57-
specWarnMassiveQuake:Play("aesoon")
58-
timerMassiveQuake:Start()
59-
timerMassiveQuakeCD:Start()
60-
elseif spellId == 144608 then
61-
specWarnCharge:Show()
62-
specWarnCharge:Play("chargemove")
63-
end
64-
end
65-
66-
function mod:SPELL_AURA_APPLIED(args)
67-
local spellId = args.spellId
68-
if spellId == 144606 then
69-
warnOxenFortitude:Show(args.destName, args.amount or 1)
70-
end
71-
end
72-
mod.SPELL_AURA_APPLIED_DOSE = mod.SPELL_AURA_APPLIED
73-
74-
function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
75-
if spellId == 148318 or spellId == 148317 or spellId == 149304 and self:AntiSpam(3, 2) then--use all 3 because i'm not sure which ones fire on repeat kills
76-
self:SendSync("Victory")
77-
end
78-
end
79-
80-
function mod:OnSync(msg)
81-
if msg == "Victory" and self:IsInCombat() then
82-
DBM:EndCombat(self)
83-
end
84-
end
1+
local mod = DBM:NewMod(859, "DBM-Pandaria", nil, 322, 1)
2+
local L = mod:GetLocalizedStrings()
3+
4+
mod:SetRevision("@file-date-integer@")
5+
mod:DisableHardcodedOptions()
6+
mod:SetCreatureID(71954)
7+
mod:SetReCombatTime(20)
8+
mod:EnableWBEngageSync()--Enable syncing engage in outdoors
9+
10+
mod:RegisterCombat("combat_yell", L.Pull)
11+
mod:RegisterKill("yell", L.Victory, L.VictoryDem)
12+
13+
mod:RegisterEventsInCombat(
14+
"SPELL_CAST_START 144610 144611 144608",
15+
"SPELL_AURA_APPLIED 144606",
16+
"SPELL_AURA_APPLIED_DOSE 144606",
17+
"UNIT_SPELLCAST_SUCCEEDED target focus"
18+
)
19+
20+
local warnOxenFortitude = mod:NewStackAnnounce(144606, 2, nil, false)--144607 player version, but better to just track boss and announce stacks
21+
22+
local specWarnHeadbutt = mod:NewSpecialWarningDefensive(144610, nil, nil, nil, 1, 2)
23+
local specWarnHeadbuttTaunt = mod:NewSpecialWarningTaunt(144610, nil, nil, nil, 1, 2)
24+
local specWarnMassiveQuake = mod:NewSpecialWarningSpell(144611, nil, nil, nil, 2, 2)
25+
local specWarnCharge = mod:NewSpecialWarningDodge(144609, "Melee", nil, nil, 2, 2)--66 and 33%. Maybe add pre warns
26+
27+
local timerHeadbuttCD = mod:NewCDTimer(47, 144610, nil, "Tank", nil, 5, nil, DBM_COMMON_L.TANK_ICON)
28+
local timerMassiveQuake = mod:NewBuffActiveTimer(13, 144611, nil, nil, nil, 5, nil, DBM_COMMON_L.HEALER_ICON)
29+
local timerMassiveQuakeCD = mod:NewCDTimer(48, 144611, nil, nil, nil, 2)
30+
31+
mod:AddReadyCheckOption(33117, false, 90)
32+
33+
function mod:OnCombatStart(delay, yellTriggered)
34+
if yellTriggered then
35+
timerHeadbuttCD:Start(16-delay)
36+
timerMassiveQuakeCD:Start(45-delay)
37+
end
38+
end
39+
40+
function mod:SPELL_CAST_START(args)
41+
local spellId = args.spellId
42+
if spellId == 144610 then
43+
if self:IsTanking("player", nil, nil, true, args.sourceGUID) then
44+
specWarnHeadbutt:Show()
45+
specWarnHeadbutt:Play("carefly")
46+
else
47+
local bossTarget, bossTargetUID = self:GetBossTarget(71954)
48+
if bossTargetUID then
49+
if self:IsTanking(bossTargetUID, nil, nil, true, args.sourceGUID) then
50+
specWarnHeadbuttTaunt:Show(bossTarget or DBM_COMMON_L.UNKNOWN)
51+
specWarnHeadbuttTaunt:Play("tauntboss")
52+
end
53+
end
54+
end
55+
timerHeadbuttCD:Start()
56+
elseif spellId == 144611 then
57+
specWarnMassiveQuake:Show()
58+
specWarnMassiveQuake:Play("aesoon")
59+
timerMassiveQuake:Start()
60+
timerMassiveQuakeCD:Start()
61+
elseif spellId == 144608 then
62+
specWarnCharge:Show()
63+
specWarnCharge:Play("chargemove")
64+
end
65+
end
66+
67+
function mod:SPELL_AURA_APPLIED(args)
68+
local spellId = args.spellId
69+
if spellId == 144606 then
70+
warnOxenFortitude:Show(args.destName, args.amount or 1)
71+
end
72+
end
73+
mod.SPELL_AURA_APPLIED_DOSE = mod.SPELL_AURA_APPLIED
74+
75+
function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, spellId)
76+
if spellId == 148318 or spellId == 148317 or spellId == 149304 and self:AntiSpam(3, 2) then--use all 3 because i'm not sure which ones fire on repeat kills
77+
self:SendSync("Victory")
78+
end
79+
end
80+
81+
function mod:OnSync(msg)
82+
if msg == "Victory" and self:IsInCombat() then
83+
DBM:EndCombat(self)
84+
end
85+
end

DBM-Pandaria/Oondasta.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ local mod = DBM:NewMod(826, "DBM-Pandaria", nil, 322)
22
local L = mod:GetLocalizedStrings()
33

44
mod:SetRevision("@file-date-integer@")
5+
mod:DisableHardcodedOptions()
56
mod:SetCreatureID(69161)
67
mod:SetEncounterID(1587)
78
mod:SetReCombatTime(20, 10)

DBM-Pandaria/Ordos.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ local mod = DBM:NewMod(861, "DBM-Pandaria", nil, 322, 1)
22
local L = mod:GetLocalizedStrings()
33

44
mod:SetRevision("@file-date-integer@")
5+
mod:DisableHardcodedOptions()
56
mod:SetCreatureID(72057)
67
mod:SetReCombatTime(20, 10)
78
mod:SetUsedIcons(8, 7, 6)

0 commit comments

Comments
 (0)