fix(Scripts/SethekkHalls): Only spawn Brood of Anzu in bounds. (#24022)

This commit is contained in:
Benjamin Jackson
2025-12-27 16:27:37 -05:00
committed by GitHub
parent a3f0769547
commit 54fc87bbdf

View File

@@ -139,7 +139,10 @@ struct boss_anzu : public BossAI
me->CastSpell(me, SPELL_BANISH_SELF, true);
for (uint8 i = 0; i < 5; ++i)
{
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);
Position spawnPos = me->GetNearPosition(20.0f, (float)i);
spawnPos.m_positionZ += 25.0f;
spawnPos.m_orientation = 0.0f;
me->SummonCreature(NPC_BROOD_OF_ANZU, spawnPos, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000);
}
}