From a27dd0c41a5910a8849ee39fa95d2a63b90eed24 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 27 Feb 2009 12:21:28 -0600 Subject: [7341] Report about wrongly use CREATURE_FLAG_EXTRA_INSTANCE_BIND for creatures spawned at not dungeon maps. Author: NoFantasy --HG-- branch : trunk --- src/game/ObjectMgr.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/game/ObjectMgr.cpp') diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 34cfa48c917..7aabe0f5f1c 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -1022,6 +1022,13 @@ void ObjectMgr::LoadCreatures() data.curhealth = cInfo->minhealth; } + if(cInfo->flags_extra & CREATURE_FLAG_EXTRA_INSTANCE_BIND) + { + MapEntry const* map = sMapStore.LookupEntry(data.mapid); + if(!map || !map->IsDungeon()) + sLog.outErrorDb("Table `creature` have creature (GUID: %u Entry: %u) with `creature_template`.`flags_extra` including CREATURE_FLAG_EXTRA_INSTANCE_BIND but creature are not in instance.",guid,data.id); + } + if(data.curmana < cInfo->minmana) { sLog.outErrorDb("Table `creature` have creature (GUID: %u Entry: %u) with low current mana (%u), `creature_template`.`minmana`=%u.",guid,data.id,data.curmana, cInfo->minmana ); -- cgit v1.2.3