Use PC_MAXHEALTH() in the rest of the codebase.

+ minor fixups
This commit is contained in:
2020-09-21 18:03:25 +02:00
parent 113ecc8f60
commit 321dca3f79
4 changed files with 28 additions and 24 deletions

View File

@@ -633,7 +633,7 @@ void PlayerManager::revivePlayer(CNSocket* sock, CNPacketData* data) {
plr->x = target.x;
plr->y = target.y;
plr->z = target.z;
plr->HP = 1000 * plr->level;
plr->HP = PC_MAXHEALTH(plr->level);
// Response parameters
response.PCRegenData.iActiveNanoSlotNum = plr->activeNano;