mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
check creature's base stats table in more proper way
it should show more missing data --HG-- branch : trunk
This commit is contained in:
@@ -9004,9 +9004,10 @@ void ObjectMgr::LoadCreatureClassLevelStats()
|
||||
if (!info)
|
||||
continue;
|
||||
|
||||
if (m_creatureBaseStatsMap.find( MAKE_PAIR16(info->maxlevel, info->unit_class) ) == m_creatureBaseStatsMap.end())
|
||||
for(uint8 lvl = info->minlevel; lvl <= info->maxlevel; ++lvl)
|
||||
{
|
||||
sLog.outErrorDb("Missing base stats for creature class %u maxlevel %u", info->unit_class, info->maxlevel);
|
||||
if (m_creatureBaseStatsMap.find( MAKE_PAIR16(lvl, info->unit_class) ) == m_creatureBaseStatsMap.end())
|
||||
sLog.outErrorDb("Missing base stats for creature class %u level %u", info->unit_class, lvl);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user