From 73345b0d7f740408c1d55890942a9cbc7402f287 Mon Sep 17 00:00:00 2001 From: sirikfoll Date: Fri, 26 Jan 2018 19:18:10 -0200 Subject: [PATCH] Core/SmartAI: Remove duplicate OnReset() call It is already called for every creature in SmartAI::InitializeAI(), removing the one from SmartAI::JustAppeared to keep as much as possible of the old behavior, because JustAppeared is called on the next tick after InitializeAI Closes #20881 Closes #20771 --- src/server/game/AI/SmartScripts/SmartAI.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index eb798f2527..cc85cdd589 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -606,7 +606,6 @@ void SmartAI::JustAppeared() if (me->GetFaction() != me->GetCreatureTemplate()->faction) me->RestoreFaction(); - GetScript()->OnReset(); GetScript()->ProcessEventsFor(SMART_EVENT_RESPAWN); mFollowGuid.Clear(); // do not reset follower on Reset(), we need it after combat evade mFollowDist = 0;