[7666] For heroic mode creature use AIName from normal mode version in same way as done for ScriptName.

Also at creature templates loading check that AIName/ScriptName not set for heroic mode creature versions.
This commit is contained in:
VladimirMangos 2009-04-14 02:10:32 +04:00
parent 1ebf1a5ba4
commit 721e005b84
6 changed files with 25 additions and 9 deletions

View file

@ -32,7 +32,7 @@
int CreatureEventAI::Permissible(const Creature *creature)
{
if( creature->GetCreatureInfo()->AIName == "EventAI" )
if( creature->GetAIName() == "EventAI" )
return PERMIT_BASE_SPECIAL;
return PERMIT_BASE_NO;
}