[7341] Report about wrongly use CREATURE_FLAG_EXTRA_INSTANCE_BIND for creatures spawned at not dungeon maps. Author: NoFantasy

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-27 12:21:28 -06:00
parent 0c0fe3185f
commit a27dd0c41a
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -1022,6 +1022,13 @@ void ObjectMgr::LoadCreatures()
data.curhealth = cInfo->minhealth; 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) 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 ); 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 );
+1 -1
View File
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7340" #define REVISION_NR "7341"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__