Skip to content

Commit 54fc87b

Browse files
authored
fix(Scripts/SethekkHalls): Only spawn Brood of Anzu in bounds. (azerothcore#24022)
1 parent a3f0769 commit 54fc87b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/server/scripts/Outland/Auchindoun/SethekkHalls/boss_anzu.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ struct boss_anzu : public BossAI
139139
me->CastSpell(me, SPELL_BANISH_SELF, true);
140140
for (uint8 i = 0; i < 5; ++i)
141141
{
142-
me->SummonCreature(NPC_BROOD_OF_ANZU, me->GetPositionX() + 20 * cos((float)i), me->GetPositionY() + 20 * std::sin((float)i), me->GetPositionZ() + 25.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000);
142+
Position spawnPos = me->GetNearPosition(20.0f, (float)i);
143+
spawnPos.m_positionZ += 25.0f;
144+
spawnPos.m_orientation = 0.0f;
145+
me->SummonCreature(NPC_BROOD_OF_ANZU, spawnPos, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000);
143146
}
144147
}
145148

0 commit comments

Comments
 (0)