mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user