fix: clear corpse reclaim delay on world reset and resurrection

Reset corpseReclaimAvailableMs_ to 0 in both world-teardown/re-login
and ghost-flag-cleared paths so the PvP delay countdown never bleeds
into subsequent deaths or sessions.
This commit is contained in:
Kelsi 2026-03-17 23:57:47 -07:00
parent b0046fa777
commit 395a8f77c4

View file

@ -10988,6 +10988,7 @@ void GameHandler::forceClearTaxiAndMovementState() {
playerDead_ = false;
releasedSpirit_ = false;
corpseGuid_ = 0;
corpseReclaimAvailableMs_ = 0;
repopPending_ = false;
pendingSpiritHealerGuid_ = 0;
resurrectCasterGuid_ = 0;
@ -12168,6 +12169,7 @@ void GameHandler::applyUpdateObjectBlock(const UpdateBlock& block, bool& newItem
resurrectPending_ = false;
corpseMapId_ = 0; // corpse reclaimed
corpseGuid_ = 0;
corpseReclaimAvailableMs_ = 0;
LOG_INFO("Player resurrected (PLAYER_FLAGS ghost cleared)");
if (ghostStateCallback_) ghostStateCallback_(false);
}