fix(Core/Handler): player can reclaim corpse regardless of phase (#23862)
This commit is contained in:
@@ -656,7 +656,8 @@ void WorldSession::HandleReclaimCorpseOpcode(WorldPacket& recv_data)
|
|||||||
if (time_t(corpse->GetGhostTime() + _player->GetCorpseReclaimDelay(corpse->GetType() == CORPSE_RESURRECTABLE_PVP)) > time_t(GameTime::GetGameTime().count()))
|
if (time_t(corpse->GetGhostTime() + _player->GetCorpseReclaimDelay(corpse->GetType() == CORPSE_RESURRECTABLE_PVP)) > time_t(GameTime::GetGameTime().count()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!corpse->IsWithinDistInMap(_player, CORPSE_RECLAIM_RADIUS, true))
|
// skip phase check
|
||||||
|
if (!corpse->IsInMap(_player) || !corpse->IsWithinDist(_player, CORPSE_RECLAIM_RADIUS, true))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// resurrect
|
// resurrect
|
||||||
|
|||||||
Reference in New Issue
Block a user