mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user