Core/SAI: remove double calls to SMART_EVENT_RESPAWN for creatures and gameobjects (#20420)

This commit is contained in:
Wyreth
2017-10-23 23:45:21 +02:00
committed by Treeston
parent bf604a9f38
commit 637b5f922d

View File

@@ -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();
}