Core/AI: Clean up charm AI handling, we now have two unique_ptr instead of a crapton of booleans
(cherry picked from commit 042f5515e4f3e52b0d2e23d9b9e147041849ce12)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user