From 4f4c6aeaf533419a7933e8ff0ee6f09d976a04b7 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 14 Apr 2009 18:31:31 -0500 Subject: [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 --- src/game/ObjectMgr.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/game/ObjectMgr.cpp') diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 9e4c7244c58..7096fa03dfa 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -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); } -- cgit v1.2.3