mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
@@ -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