From c272641c75014d2c64d8a9d344beec7c9aa7c2e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Wed, 20 Apr 2022 12:52:58 -0600 Subject: [PATCH] Fix boss scripts with latest AC build --- src/vanillaScripts/boss_chromaggus.cpp | 6 +++--- src/vanillaScripts/boss_lord_kazzak.cpp | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/vanillaScripts/boss_chromaggus.cpp b/src/vanillaScripts/boss_chromaggus.cpp index a940933..6424d71 100644 --- a/src/vanillaScripts/boss_chromaggus.cpp +++ b/src/vanillaScripts/boss_chromaggus.cpp @@ -49,8 +49,8 @@ enum Spells SPELL_CHROMATIC_MUT_1 = 23174, //Spell cast on player if they get all 5 debuffs SPELL_ELEMENTAL_SHIELD = 22276, - SPELL_FRENZY = 28371, //The frenzy spell may be wrong - SPELL_ENRAGE = 28747 + SPELL_FRENZY = 23128, + SPELL_ENRAGE = 23537 }; enum Events @@ -239,7 +239,7 @@ public: // Cast new random vulnerabilty on self DoCast(me, SPELL_ELEMENTAL_SHIELD); Talk(EMOTE_SHIMMER); - events.ScheduleEvent(EVENT_SHIMMER, 45000); + events.ScheduleEvent(EVENT_SHIMMER, urand(17000, 25000)); break; case EVENT_BREATH_1: DoCastVictim(Breath1_Spell); diff --git a/src/vanillaScripts/boss_lord_kazzak.cpp b/src/vanillaScripts/boss_lord_kazzak.cpp index edd1420..c6e0ef4 100644 --- a/src/vanillaScripts/boss_lord_kazzak.cpp +++ b/src/vanillaScripts/boss_lord_kazzak.cpp @@ -158,10 +158,10 @@ public: Talk(SAY_KILL); } - void EnterEvadeMode() override + void EnterEvadeMode(EvadeReason why) override { Talk(SAY_WIPE); - ScriptedAI::EnterEvadeMode(); + ScriptedAI::EnterEvadeMode(why); if (sConfigMgr->GetOption("ProgressionSystem.60.WorldBosses.KazzakPhasing", 1)) { @@ -312,4 +312,3 @@ void AddSC_boss_lord_kazzak_60_2() new boss_lord_kazzak_60_2(); new spell_mark_of_kazzak_60_2(); } -