[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
This commit is contained in:
megamage
2009-04-14 18:31:31 -05:00
parent 9ec70b5e72
commit 4f4c6aeaf5
5 changed files with 25 additions and 10 deletions

View File

@@ -591,6 +591,18 @@ void ObjectMgr::LoadCreatureTemplates()
continue;
}
if(heroicInfo->AIName && *heroicInfo->AIName)
{
sLog.outErrorDb("Heroic mode creature (Entry: %u) has `AIName`, but in any case will used normal mode creature (Entry: %u) AIName.",cInfo->HeroicEntry,i);
continue;
}
if(heroicInfo->ScriptID)
{
sLog.outErrorDb("Heroic mode creature (Entry: %u) has `ScriptName`, but in any case will used normal mode creature (Entry: %u) ScriptName.",cInfo->HeroicEntry,i);
continue;
}
hasHeroicEntries.insert(i);
heroicEntries.insert(cInfo->HeroicEntry);
}