Core/TempSummons: avoid use MoveInLineOfSight before InitSummon (#20999)

This commit is contained in:
EricksOliveira
2024-12-22 08:03:28 +00:00
committed by GitHub
parent ebf7f7583b
commit 2110f7cc84
5 changed files with 11 additions and 2 deletions

View File

@@ -2274,7 +2274,9 @@ TempSummon* Map::SummonCreature(uint32 entry, Position const& pos, SummonPropert
summon->InitSummon();
//ObjectAccessor::UpdateObjectVisibility(summon);
// call MoveInLineOfSight for nearby creatures
Acore::AIRelocationNotifier notifier(*summon);
Cell::VisitAllObjects(summon, notifier, GetVisibilityRange());
return summon;
}