mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-02-21 10:20:12 +00:00
Clear player buffs on death if not revived
This commit is contained in:
parent
97dca62fd0
commit
f2447cd940
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user