fix(Scripts/Ulduar): Razorscale rebuilds turrets in correct left-to-right order (#26243)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-06-16 22:17:24 -03:00
committed by GitHub
parent 98e7a05caa
commit 8ba0c75e1b

View File

@@ -819,6 +819,8 @@ struct npc_ulduar_expedition_engineer : public NullCreatureAI
std::list<Creature*> hfsList;
me->GetCreaturesWithEntryInRange(hfsList, 300.0f, NPC_HARPOON_FIRE_STATE);
// Rebuild the turrets left-to-right (1 -> 4) instead of in grid/spawn order
hfsList.sort([](Creature const* a, Creature const* b) { return a->GetPositionX() < b->GetPositionX(); });
for (Creature* fs : hfsList)
if (!fs->AI()->GetData(2))
{