From c03ba55d76eeae0248ff9a20648c019781ce26bf Mon Sep 17 00:00:00 2001 From: Grimdhex <176165533+Grimdhex@users.noreply.github.com> Date: Sun, 22 Sep 2024 10:15:48 +0200 Subject: [PATCH] revert the old changes --- .../Outland/BlackTemple/boss_mother_shahraz.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp b/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp index 64a2fdb30b..109fc75185 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp @@ -212,21 +212,15 @@ class spell_mother_shahraz_fatal_attraction : public SpellScript void SetDest(SpellDestination& dest) { - float constexpr minDist = 30.0f; - float constexpr maxDist = 48.0f; - - // Randomize the teleportation distance from the caster - float const teleportDist = frand(minDist, maxDist); - // Initialize a first destination - Position teleportDest = GetCaster()->GetRandomNearPosition(teleportDist); + Position teleportDest = GetCaster()->GetRandomNearPosition(50.0f); // Ensure that the destination is not too close to the caster. // Add a check for LOS, to ensure to not be teleported under the map while (!teleportDest.IsRadiusPositionValid(GetCaster(), teleportDest, 25.0f)) { // If the conditions are not met, find a new destination. - teleportDest = GetCaster()->GetRandomNearPosition(teleportDist); + teleportDest = GetCaster()->GetRandomNearPosition(50.0f); } // When a valid destination is found, relocate it.