fix(Scripts/Ulduar): Storm Beacons spawn Steelforged Defenders against vehicles (#26380)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-06-29 07:56:50 -03:00
committed by GitHub
parent f94cce06a4
commit c975d05eab

View File

@@ -1086,7 +1086,7 @@ struct npc_storm_beacon_spawn : public NullCreatureAI
if (_checkTimer >= 4000)
{
_checkTimer = 0;
if (Unit* target = me->SelectNearbyTarget(nullptr, 80.0f))
if (Unit* target = me->SelectNearestTarget(80.0f))
{
++_amount;
if (Creature* cr = me->SummonCreature(NPC_DEFENDER_GENERATED, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ() + 4, me->GetOrientation(), TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 900000))