From 0b73cef187e706b5dc7e6631155b6ad40ffc5fb4 Mon Sep 17 00:00:00 2001 From: gsemaj Date: Sun, 20 Aug 2023 18:16:14 -0700 Subject: [PATCH] Clear player buffs on death if not revived --- src/PlayerManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PlayerManager.cpp b/src/PlayerManager.cpp index c07df89..db6a38a 100644 --- a/src/PlayerManager.cpp +++ b/src/PlayerManager.cpp @@ -416,6 +416,7 @@ static void revivePlayer(CNSocket* sock, CNPacketData* data) { default: // plain respawn plr->HP = PC_MAXHEALTH(plr->level) / 2; + plr->clearBuffs(false); // fallthrough case ePCRegenType::Unstick: // warp away move = true;