From 637b5f922d5849fa5b01d8ed28a826eddd3dc2cd Mon Sep 17 00:00:00 2001 From: Wyreth <32145860+Wyreth@users.noreply.github.com> Date: Mon, 23 Oct 2017 23:45:21 +0200 Subject: Core/SAI: remove double calls to SMART_EVENT_RESPAWN for creatures and gameobjects (#20420) --- src/server/game/AI/SmartScripts/SmartAI.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src') 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(); } -- cgit v1.2.3