1
1
local Mag = DBM :NewBossMod (" Magtheridon" , DBM_MAG_NAME , DBM_MAG_DESCRIPTION , DBM_MAGS_LAIR , DBMGUI_TAB_OTHER_BC , 3 );
2
2
3
- Mag .Version = " 1.2 " ;
3
+ Mag .Version = " 1.3 " ;
4
4
Mag .Author = " FigureEightLV" ; -- Originally by Tandanu
5
5
6
6
Mag :RegisterCombat (" EMOTE" , DBM_MAG_EMOTE_PULL );
@@ -19,7 +19,7 @@ Mag:AddOption("WarnNova", true, DBM_MAG_OPTION_3);
19
19
Mag :AddBarOption (" Phase 2" )
20
20
Mag :AddBarOption (" Heal" )
21
21
Mag :AddBarOption (" Blast Nova" )
22
- Mag :AddBarOption (" Quake" )
22
+ Mag :AddBarOption (" Quake%d " , true , DBM_MAG_OPTION_4 )
23
23
Mag :AddBarOption (" Enrage" , false )
24
24
25
25
function Mag :OnCombatStart (delay )
@@ -71,15 +71,11 @@ function Mag:OnSync(msg)
71
71
self :ScheduleSelf (110 , " Phase2Warn" , 10 );
72
72
elseif msg == " Firstnova" then
73
73
self :StartStatusBarTimer (55 , " Blast Nova" , " Interface\\ Icons\\ Spell_Fire_SealOfFire" );
74
- elseif msg :sub (1 , 5 ) == " Quake" then -- Quake timers can become off when Blast Nova occurs at the same time
75
- local count = msg :sub (6 , 7 )
76
- if count == " 1" then
77
- self :StartStatusBarTimer (40 , " Quake" , " Interface\\ Icons\\ Spell_Nature_Earthquake" );
78
- self :ScheduleMethod (40 , " SendSync" , " Quake2" );
79
- else
80
- self :StartStatusBarTimer (50 , " Quake" , " Interface\\ Icons\\ Spell_Nature_Earthquake" );
81
- self :ScheduleMethod (50 , " SendSync" , " Quake" .. count );
82
- end
74
+ elseif msg :sub (1 ,5 ) == " Quake" then -- Quake timers can become off when Blast Nova occurs at the same time
75
+ local count = tonumber (msg :sub (6 ,7 ))
76
+ local timer = count > 1 and 50 or 38
77
+ self :StartStatusBarTimer (timer , " Quake" .. count , " Interface\\ Icons\\ Spell_Nature_Earthquake" );
78
+ self :ScheduleMethod (timer , " SendSync" , " Quake" .. (count + 1 ));
83
79
elseif msg == " Enrage" then
84
80
self :StartStatusBarTimer (1200 , " Enrage" , " Interface\\ Icons\\ Spell_Shadow_UnholyFrenzy" )
85
81
self :ScheduleAnnounce (600 , DBM_GENERIC_ENRAGE_WARN :format (10 , DBM_MIN ), 1 )
0 commit comments