aboutsummaryrefslogtreecommitdiff
path: root/src/game/CreatureEventAI.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-14 18:31:31 -0500
committermegamage <none@none>2009-04-14 18:31:31 -0500
commit4f4c6aeaf533419a7933e8ff0ee6f09d976a04b7 (patch)
treef34fd730fd094fef70139ab88dadf86c1532b1d8 /src/game/CreatureEventAI.cpp
parent9ec70b5e72413290e73d5a0b3d462150aa8cb93c (diff)
[7666] For heroic mode creature use AIName from normal mode version in same way as done for ScriptName. Author: VladimirMangos
Also at creature templates loading check that AIName/ScriptName not set for heroic mode creature versions. --HG-- branch : trunk
Diffstat (limited to 'src/game/CreatureEventAI.cpp')
-rw-r--r--src/game/CreatureEventAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp
index daf5c74ca72..96213130126 100644
--- a/src/game/CreatureEventAI.cpp
+++ b/src/game/CreatureEventAI.cpp
@@ -34,7 +34,7 @@
int CreatureEventAI::Permissible(const Creature *creature)
{
- if( creature->GetCreatureInfo()->AIName == "EventAI" )
+ if( creature->GetAIName() == "EventAI" )
return PERMIT_BASE_SPECIAL;
return PERMIT_BASE_NO;
}