From 1cce3676459d34f2ee18f886c90f7d046df8005f Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sat, 9 Apr 2022 13:59:47 +0200 Subject: [PATCH] =?UTF-8?q?fix(Scripts/BlackwingLair):=20Prevent=20Razorgo?= =?UTF-8?q?res'=20eggs=20from=20respawning=20=E2=80=A6=20(#11336)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(Scripts/BlackwingLair): Prevent Razorgores' eggs from respawning after wipe. * Update. * Update. * Update. --- .../BlackrockMountain/BlackwingLair/boss_razorgore.cpp | 1 + .../BlackwingLair/instance_blackwing_lair.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_razorgore.cpp b/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_razorgore.cpp index fb1ab43cd..500462488 100644 --- a/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_razorgore.cpp +++ b/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_razorgore.cpp @@ -306,6 +306,7 @@ public: razorgore->AI()->DoAction(TALK_EGG_BROKEN_RAND); egg->SetLootState(GO_READY); egg->UseDoorOrButton(10000); + egg->SetRespawnTime(WEEK); } } } diff --git a/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/instance_blackwing_lair.cpp b/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/instance_blackwing_lair.cpp index 8e1f0c3bb..b39974a38 100644 --- a/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/instance_blackwing_lair.cpp +++ b/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/instance_blackwing_lair.cpp @@ -310,6 +310,8 @@ public: break; case SPECIAL: + if (EggEvent == NOT_STARTED) + SetData(DATA_EGG_EVENT, IN_PROGRESS); if (++EggCount >= EggList.size()) { if (Creature* razor = instance->GetCreature(razorgoreGUID)) @@ -321,8 +323,6 @@ public: _events.ScheduleEvent(EVENT_RAZOR_PHASE_TWO, 1000); _events.CancelEvent(EVENT_RAZOR_SPAWN); } - if (EggEvent == NOT_STARTED) - SetData(DATA_EGG_EVENT, IN_PROGRESS); break; } }