mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Core/SAI: remove double calls to SMART_EVENT_RESPAWN for creatures and gameobjects (#20420)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user