Fix boss scripts with latest AC build

This commit is contained in:
郑佩茹
2022-04-20 12:52:58 -06:00
parent 5dd9e33607
commit c272641c75
2 changed files with 5 additions and 6 deletions

View File

@@ -49,8 +49,8 @@ enum Spells
SPELL_CHROMATIC_MUT_1 = 23174, //Spell cast on player if they get all 5 debuffs SPELL_CHROMATIC_MUT_1 = 23174, //Spell cast on player if they get all 5 debuffs
SPELL_ELEMENTAL_SHIELD = 22276, SPELL_ELEMENTAL_SHIELD = 22276,
SPELL_FRENZY = 28371, //The frenzy spell may be wrong SPELL_FRENZY = 23128,
SPELL_ENRAGE = 28747 SPELL_ENRAGE = 23537
}; };
enum Events enum Events
@@ -239,7 +239,7 @@ public:
// Cast new random vulnerabilty on self // Cast new random vulnerabilty on self
DoCast(me, SPELL_ELEMENTAL_SHIELD); DoCast(me, SPELL_ELEMENTAL_SHIELD);
Talk(EMOTE_SHIMMER); Talk(EMOTE_SHIMMER);
events.ScheduleEvent(EVENT_SHIMMER, 45000); events.ScheduleEvent(EVENT_SHIMMER, urand(17000, 25000));
break; break;
case EVENT_BREATH_1: case EVENT_BREATH_1:
DoCastVictim(Breath1_Spell); DoCastVictim(Breath1_Spell);

View File

@@ -158,10 +158,10 @@ public:
Talk(SAY_KILL); Talk(SAY_KILL);
} }
void EnterEvadeMode() override void EnterEvadeMode(EvadeReason why) override
{ {
Talk(SAY_WIPE); Talk(SAY_WIPE);
ScriptedAI::EnterEvadeMode(); ScriptedAI::EnterEvadeMode(why);
if (sConfigMgr->GetOption<int>("ProgressionSystem.60.WorldBosses.KazzakPhasing", 1)) if (sConfigMgr->GetOption<int>("ProgressionSystem.60.WorldBosses.KazzakPhasing", 1))
{ {
@@ -312,4 +312,3 @@ void AddSC_boss_lord_kazzak_60_2()
new boss_lord_kazzak_60_2(); new boss_lord_kazzak_60_2();
new spell_mark_of_kazzak_60_2(); new spell_mark_of_kazzak_60_2();
} }