Skip to content

Commit

Permalink
fix(Scripts/BlackTemple): Fix Mother Shahraz teleport (#19820)
Browse files Browse the repository at this point in the history
fix(Scripts/BlackTemple): Fix Mother Sharaz teleport

Co-authored-by: Keader <keader.android@gmail.com>
  • Loading branch information
Nyeriah and Keader committed Aug 31, 2024
1 parent 3b45e90 commit 83d623e
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,7 @@ class spell_mother_shahraz_fatal_attraction : public SpellScript

void SetDest(SpellDestination& dest)
{
std::list<TargetInfo> const* targetsInfo = GetSpell()->GetUniqueTargetInfo();
for (std::list<TargetInfo>::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*/)
Expand Down

0 comments on commit 83d623e

Please sign in to comment.