Clear player buffs on death if not revived

This commit is contained in:
gsemaj 2023-08-20 18:16:14 -07:00
parent 7af39b3d04
commit 0b73cef187
No known key found for this signature in database
GPG Key ID: 24B96BAA40497929

View File

@ -416,6 +416,7 @@ static void revivePlayer(CNSocket* sock, CNPacketData* data) {
default: // plain respawn default: // plain respawn
plr->HP = PC_MAXHEALTH(plr->level) / 2; plr->HP = PC_MAXHEALTH(plr->level) / 2;
plr->clearBuffs(false);
// fallthrough // fallthrough
case ePCRegenType::Unstick: // warp away case ePCRegenType::Unstick: // warp away
move = true; move = true;