Core/Scripting: Fixed hotswap calling evade mode for dead creatures
This commit is contained in:
1 parent
752ba8367e
commit
dea47762be
1 file changed
+2
-1
@@ -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