mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 15:16:38 +08:00
fix(Scripts/Ulduar): Razorscale rebuilds turrets in correct left-to-right order (#26243)
Co-authored-by: Claude Opus 4.8 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
98e7a05caa
commit
8ba0c75e1b
@@ -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