From 7a984dd4f08ff41912d9b615bcdcc1d338cc1672 Mon Sep 17 00:00:00 2001 From: Grimdhex <176165533+Grimdhex@users.noreply.github.com> Date: Sun, 15 Sep 2024 09:56:03 +0200 Subject: [PATCH] fix(Script/BlackTemple): teleport position with fatal attraction --- .../scripts/Outland/BlackTemple/boss_mother_shahraz.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp b/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp index 830447c8da..276360c78e 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp @@ -57,6 +57,10 @@ enum Spells SPELL_SABER_LASH_IMMUNITY = 43690 }; +/// @note: Estimated values with videos evidences +/// @todo: Need a proper sniff +const Position teleport_room_center = { 949.15f, 305.88f, 191.21f, 0.0f }; + enum Misc { GROUP_ENRAGE = 1 @@ -212,7 +216,7 @@ class spell_mother_shahraz_fatal_attraction : public SpellScript void SetDest(SpellDestination& dest) { - dest.Relocate(GetCaster()->GetRandomNearPosition(50.0f)); + dest.Relocate(teleport_room_center); } void HandleTeleportUnits(SpellEffIndex /*effIndex*/)