mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Scripting: Fixed hotswap calling evade mode for dead creatures
This commit is contained in:
@@ -378,7 +378,8 @@ class CreatureGameObjectScriptRegistrySwapHooks
|
||||
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