From d5d5df67ba0f792e8c80e78ef3d21357b9c2cd0c Mon Sep 17 00:00:00 2001 From: Rorschach91 <108557877+Rorschach91@users.noreply.github.com> Date: Tue, 8 Oct 2024 11:53:42 +0200 Subject: [PATCH] fix(Script/Mother Shahraz) Add new teleport points. (#20137) * fix(Script/Mother Shahraz) Increase min teleport range and add new teleport points. This fix increase minimum teleport range for Fatal Attraction and It adds 5 new teleport points if the boss is near the platform. * Update boss_mother_shahraz.cpp --- .../Outland/BlackTemple/boss_mother_shahraz.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp b/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp index d0028399a..1149c7b69 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp @@ -196,12 +196,22 @@ class spell_mother_shahraz_saber_lash_aura : public AuraScript } }; -const Position validTeleportStairsPos[4] = +const Position validTeleportStairsPos[9] = { + //Platform teleports + + {945.00f, 149.17f, 197.07483}, + {956.92f, 153.20f, 197.07483}, + {933.69f, 154.15f, 197.07483}, + + //Floor teleports + {966.87f, 184.45f, 192.84f}, {927.22f, 187.04f, 192.84f}, {922.54f, 110.09f, 192.84f}, - {958.01f, 110.47f, 192.84f} + {958.01f, 110.47f, 192.84f}, + {939.95f, 108.29f, 192.84f}, + {945.68f, 205.74f, 192.84f} }; constexpr float minTeleportDist = 30.f; @@ -227,7 +237,7 @@ class spell_mother_shahraz_fatal_attraction : public SpellScript // Check if the boss is near stairs to avoid players falling through the platform with random teleports. if (GetCaster()->GetPositionY() < 194.f) - finalDest = validTeleportStairsPos[urand(0, 3)]; + finalDest = validTeleportStairsPos[urand(0, 8)]; else { finalDest = GetCaster()->GetNearPosition(frand(minTeleportDist, maxTeleportDist), static_cast(rand_norm()) * static_cast(2 * M_PI), true);