From 83d623e559cd82114cf2577d20e33ee717706b60 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Sat, 31 Aug 2024 17:35:17 -0300 Subject: [PATCH] fix(Scripts/BlackTemple): Fix Mother Shahraz teleport (#19820) fix(Scripts/BlackTemple): Fix Mother Sharaz teleport Co-authored-by: Keader --- .../scripts/Outland/BlackTemple/boss_mother_shahraz.cpp | 9 +-------- 1 file changed, 1 insertion(+), 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 db41a2091..830447c8d 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp @@ -212,14 +212,7 @@ class spell_mother_shahraz_fatal_attraction : public SpellScript void SetDest(SpellDestination& dest) { - std::list const* targetsInfo = GetSpell()->GetUniqueTargetInfo(); - for (std::list::const_iterator ihit = targetsInfo->begin(); ihit != targetsInfo->end(); ++ihit) - if (Unit* target = ObjectAccessor::GetUnit(*GetCaster(), ihit->targetGUID)) - { - dest.Relocate(*target); - if (roll_chance_i(50)) - break; - } + dest.Relocate(GetCaster()->GetRandomNearPosition(50.0f)); } void HandleTeleportUnits(SpellEffIndex /*effIndex*/)