|
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 |
0 commit comments