Core/SAI: Fix the respawn event for GameObjects
Port From (https://github.com/TrinityCore/TrinityCore/commit/da1166db98f5f73aa1d8dc04ae2e39617c8b6a4c)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user