Also add expansion and unit class to debug output when base stats for creature cannot be found to better pinpoint lack of DB support.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-12-22 22:14:04 +01:00
parent b7ea59daf2
commit 1bb648ccb9

View File

@@ -8948,9 +8948,7 @@ BaseHealthManaPair ObjectMgr::GenerateCreatureStats(uint32 level, CreatureInfo c
CreatureBaseStats const* stats = GetCreatureBaseStats(info->expansion, info->unit_class, level);
if (!stats)
{
sLog.outError("Could not find base stats for creature entry %u (base stats level %u)", info->Entry, level);
}
sLog.outError("Could not find base stats for creature entry %u (base stats: expansion %u, class %u, level %u)", info->Entry, info->expansion, info->unit_class, level);
else
{
health = stats->GenerateHealth(level, info);