Skip to content

Commit e6b9f21

Browse files
authored
Core/Creatures: Update creature GenerateHealth rounding formula (#30971)
1 parent f2662cc commit e6b9f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/game/Entities/Creature/CreatureData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ struct TC_GAME_API CreatureBaseStats
403403

404404
uint32 GenerateHealth(CreatureTemplate const* info) const
405405
{
406-
return uint32(ceil(BaseHealth[info->expansion] * info->ModHealth));
406+
return uint32(std::round(std::max(BaseHealth[info->expansion] * info->ModHealth, 1.0f)));
407407
}
408408

409409
uint32 GenerateMana(CreatureTemplate const* info) const

0 commit comments

Comments
 (0)