diff options
| author | Wyreth <32145860+Wyreth@users.noreply.github.com> | 2017-10-23 23:45:21 +0200 | 
|---|---|---|
| committer | Treeston <treeston.mmoc@gmail.com> | 2017-10-23 23:45:21 +0200 | 
| commit | 637b5f922d5849fa5b01d8ed28a826eddd3dc2cd (patch) | |
| tree | 68f59e6ac06c5b9e2a2b752d76a7315dfafb3b54 /src | |
| parent | bf604a9f38628019e77c9c3d7688f66cfe5697ee (diff) | |
Core/SAI: remove double calls to SMART_EVENT_RESPAWN for creatures and gameobjects (#20420)
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.cpp | 7 | 
1 files changed, 0 insertions, 7 deletions
| diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 97350da0d4f..583daea0491 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -686,10 +686,7 @@ void SmartAI::InitializeAI()      GetScript()->OnInitialize(me);      if (!me->isDead()) -    {          GetScript()->OnReset(); -        GetScript()->ProcessEventsFor(SMART_EVENT_RESPAWN); -    }  }  void SmartAI::OnCharmed(bool apply) @@ -918,10 +915,6 @@ 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();  } | 
