From 12a0c6f1bc3afd8daad42942c0bfa7ea5fee58a8 Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Tue, 3 May 2022 07:18:45 -0300 Subject: [PATCH] =?UTF-8?q?fix(Scripts/BlackwingLair):=20Prevent=20Chromag?= =?UTF-8?q?gus=20from=20hostilizing=20playe=E2=80=A6=20(#11595)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(Scripts/BlackwingLair): Prevent Chromaggus from hostilizing players in the floor underneath * Update src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_chromaggus.cpp Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> * Update src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_chromaggus.cpp Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> --- .../BlackrockMountain/BlackwingLair/boss_chromaggus.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_chromaggus.cpp b/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_chromaggus.cpp index 49ca899d7..9da7d418a 100644 --- a/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_chromaggus.cpp +++ b/src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_chromaggus.cpp @@ -83,6 +83,9 @@ public: _breathSpells = { SPELL_INCINERATE, SPELL_TIMELAPSE, SPELL_CORROSIVEACID, SPELL_IGNITEFLESH, SPELL_FROSTBURN }; Acore::Containers::RandomResize(_breathSpells, 2); + + // Hack fix: This is here to prevent him from being pulled from the floor underneath, remove it once maps are fixed. + creature->SetReactState(REACT_PASSIVE); } void Initialize() @@ -118,6 +121,8 @@ public: if (id == GUID_LEVER_USER) { _playerGUID = guid; + // Hack fix: This is here to prevent him from being pulled from the floor underneath, remove it once maps are fixed. + me->SetReactState(REACT_AGGRESSIVE); } }