From b856362e7e6c21ce1ef5a28abfed480e1234d9e3 Mon Sep 17 00:00:00 2001 From: komod0 Date: Tue, 21 Jul 2020 15:11:18 -0300 Subject: [PATCH] Fix delay actualizacion hp y mana luego de levelar --- server_src/Entities/PlayerNet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server_src/Entities/PlayerNet.cpp b/server_src/Entities/PlayerNet.cpp index ab022bd..b8d2932 100644 --- a/server_src/Entities/PlayerNet.cpp +++ b/server_src/Entities/PlayerNet.cpp @@ -223,12 +223,14 @@ int PlayerNet::getLevel() { return level; } void PlayerNet::updateMaxHp() { maxHp = equation::playerMaxHp(getConstitution(), playerClass->getHpFactor(), playerRace->getHpFactor(), level); + listener.lifeUpdate(id, hp, maxHp); } void PlayerNet::updateMaxMana() { maxMana = equation::playerMaxMana(getIntelligence(), playerClass->getManaFactor(), playerRace->getManaFactor(), level); + listener.manaUpdate(id, mana, maxMana); } int PlayerNet::getConstitution() {