diff --git a/src/server/network/protocol/protocolgame.cpp b/src/server/network/protocol/protocolgame.cpp index 6df5d758ad2..30a47b16418 100644 --- a/src/server/network/protocol/protocolgame.cpp +++ b/src/server/network/protocol/protocolgame.cpp @@ -3516,10 +3516,7 @@ void ProtocolGame::sendCyclopediaCharacterGeneralStats() { for (uint8_t i = SKILL_FIRST; i < SKILL_CRITICAL_HIT_CHANCE; ++i) { static const uint8_t HardcodedSkillIds[] = { 11, 9, 8, 10, 7, 6, 13 }; - skills_t skill = static_cast(i); - if (!oldProtocol && (skill == SKILL_LIFE_LEECH_CHANCE || skill == SKILL_MANA_LEECH_CHANCE)) { - continue; - } + const auto skill = static_cast(i); msg.addByte(HardcodedSkillIds[i]); msg.add(std::min(player->getSkillLevel(skill), std::numeric_limits::max())); msg.add(player->getBaseSkill(skill)); @@ -3553,7 +3550,7 @@ void ProtocolGame::sendCyclopediaCharacterCombatStats() { msg.addByte(CYCLOPEDIA_CHARACTERINFO_COMBATSTATS); msg.addByte(0x00); for (uint8_t i = SKILL_CRITICAL_HIT_CHANCE; i <= SKILL_LAST; ++i) { - if (!oldProtocol && (i == SKILL_LIFE_LEECH_CHANCE || i == SKILL_MANA_LEECH_CHANCE)) { + if (i == SKILL_LIFE_LEECH_CHANCE || i == SKILL_MANA_LEECH_CHANCE) { continue; } skills_t skill = static_cast(i); @@ -3579,7 +3576,7 @@ void ProtocolGame::sendCyclopediaCharacterCombatStats() { msg.add(static_cast(player->getReflectFlat(COMBAT_PHYSICALDAMAGE))); uint8_t haveBlesses = 0; - uint8_t blessings = 8; + const uint8_t blessings = 8; for (uint8_t i = 1; i < blessings; ++i) { if (player->hasBlessing(i)) { ++haveBlesses;