aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 3f461599f60..3489260eb84 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -2233,7 +2233,7 @@ bool Creature::canCreatureAttack(Unit const *pVictim, bool force) const
if(!pVictim->isInAccessiblePlaceFor(this))
return false;
- if(!AI()->CanAIAttack(pVictim))
+ if(IsAIEnabled && !AI()->CanAIAttack(pVictim))
return false;
if(sMapStore.LookupEntry(GetMapId())->IsDungeon())