From a7dd8955f7b345d56802e14e728bd5af6802b4e9 Mon Sep 17 00:00:00 2001 From: EinBaum Date: Sat, 7 Apr 2018 21:33:59 +0100 Subject: [PATCH] Fix level up health text https://elysium-project.org/bugtracker/issue/3263 You know what's strange? The amount of health includes stamina but the mana amount does not include int --- src/game/Object/Player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/Object/Player.cpp b/src/game/Object/Player.cpp index 06daeaf2..d34f4cf8 100644 --- a/src/game/Object/Player.cpp +++ b/src/game/Object/Player.cpp @@ -2375,7 +2375,8 @@ void Player::GiveLevel(uint32 level) // send levelup info to client WorldPacket data(SMSG_LEVELUP_INFO, (4 + 4 + MAX_POWERS * 4 + MAX_STATS * 4)); data << uint32(level); - data << uint32(int32(classInfo.basehealth) - int32(GetCreateHealth())); + data << uint32((int32(classInfo.basehealth) - int32(GetCreateHealth())) + + ((int32(info.stats[STAT_STAMINA]) - GetCreateStat(STAT_STAMINA)) * 10)); // for(int i = 0; i < MAX_POWERS; ++i) // Powers loop (0-6) data << uint32(int32(classInfo.basemana) - int32(GetCreateMana())); data << uint32(0);