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

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
NoFantasy 2009-02-26 05:05:05 +03:00 committed by VladimirMangos
parent ae1a404a04
commit dbe15f5e59
2 changed files with 8 additions and 1 deletions

View file

@ -932,6 +932,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 );

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__