mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/SAI: Fix the respawn event for GameObjects (#23112)
Closes #22612
(cherry picked from commit 75a8639242)
This commit is contained in:
@@ -998,6 +998,9 @@ void SmartGameObjectAI::UpdateAI(uint32 diff)
|
||||
void SmartGameObjectAI::InitializeAI()
|
||||
{
|
||||
GetScript()->OnInitialize(me);
|
||||
// do not call respawn event if go is not spawned
|
||||
if (me->isSpawned())
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_RESPAWN);
|
||||
//Reset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user