Core/SAI: Fix the respawn event for GameObjects

Port From (https://github.com/TrinityCore/TrinityCore/commit/da1166db98f5f73aa1d8dc04ae2e39617c8b6a4c)
This commit is contained in:
hondacrx
2021-11-29 14:47:27 -05:00
parent f91bb7e9fe
commit 3239fd1f28
+4
View File
@@ -1098,6 +1098,10 @@ namespace Game.AI
public override void InitializeAI()
{
GetScript().OnInitialize(me);
// do not call respawn event if go is not spawned
if (me.IsSpawned())
GetScript().ProcessEventsFor(SmartEvents.Respawn);
}
public override void Reset()