Core/AI: Clean up charm AI handling, we now have two unique_ptr instead of a crapton of booleans

(cherry picked from commit 042f5515e4)
This commit is contained in:
Treeston
2018-08-23 14:33:28 +02:00
committed by Shauren
parent 6a91fe3fbe
commit e4e8c1c59c
67 changed files with 310 additions and 395 deletions

View File

@@ -479,7 +479,9 @@ class CreatureGameObjectAreaTriggerScriptRegistrySwapHooks
if (!creature->IsAlive())
return;
creature->AI_InitializeAndEnable();
creature->AI()->InitializeAI();
if (creature->GetVehicleKit())
creature->GetVehicleKit()->Reset();
creature->AI()->EnterEvadeMode();
// Cast a dummy visual spell asynchronously here to signal