diff --git a/Source/Game/AI/SmartScripts/SmartScript.cs b/Source/Game/AI/SmartScripts/SmartScript.cs index 9aa71bcbd..bfc4a6632 100644 --- a/Source/Game/AI/SmartScripts/SmartScript.cs +++ b/Source/Game/AI/SmartScripts/SmartScript.cs @@ -4112,7 +4112,7 @@ namespace Game.AI return false; bool smart = true; - if (creature != null && creature.GetAIName() != "SmartAI") + if (creature.GetAI() == null) smart = false; if (!smart && !silent) @@ -4127,7 +4127,7 @@ namespace Game.AI return false; bool smart = true; - if (gameObject != null && gameObject.GetAIName() != "SmartGameObjectAI") + if (gameObject.GetAI() == null) smart = false; if (!smart && !silent)