aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWyreth <32145860+Wyreth@users.noreply.github.com>2017-10-23 23:45:21 +0200
committerfunjoker <funjoker109@gmail.com>2021-01-13 22:04:52 +0100
commitb902e739d43d1d53819ad636e0900c39ba86d907 (patch)
tree70ffbca20aca1d2975307b47c72dbcb0198e20ae /src
parent82cf60c80eb0a58b5282a913959fccb23e6ed62e (diff)
Core/SAI: remove double calls to SMART_EVENT_RESPAWN for creatures and gameobjects (#20420)
(cherry picked from commit 637b5f922d5849fa5b01d8ed28a826eddd3dc2cd)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/SmartScripts/SmartAI.cpp7
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 fa35d8b8437..6ddf7113499 100644
--- a/src/server/game/AI/SmartScripts/SmartAI.cpp
+++ b/src/server/game/AI/SmartScripts/SmartAI.cpp
@@ -687,10 +687,7 @@ void SmartAI::InitializeAI()
GetScript()->OnInitialize(me);
if (!me->isDead())
- {
GetScript()->OnReset();
- GetScript()->ProcessEventsFor(SMART_EVENT_RESPAWN);
- }
}
void SmartAI::OnCharmed(bool apply)
@@ -919,10 +916,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();
}