mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Scripting: Fixed hotswap calling evade mode for dead creatures
(cherry-picked from afa8527338)
This commit is contained in:
@@ -402,7 +402,8 @@ class CreatureGameObjectAreaTriggerScriptRegistrySwapHooks
|
||||
ASSERT(!creature->IsCharmed(),
|
||||
"There is a disabled AI which is still loaded.");
|
||||
|
||||
creature->AI()->EnterEvadeMode();
|
||||
if (creature->IsAlive())
|
||||
creature->AI()->EnterEvadeMode();
|
||||
}
|
||||
|
||||
static void UnloadDestroyScript(Creature* creature)
|
||||
|
||||
Reference in New Issue
Block a user