Core/Player: Don't allow to deactivate PvP mode in hostile/neutral zones at PvP realms
This commit is contained in:
@@ -19049,7 +19049,7 @@ void Player::UpdatePvPFlag(time_t currTime)
|
|||||||
{
|
{
|
||||||
if (!IsPvP())
|
if (!IsPvP())
|
||||||
return;
|
return;
|
||||||
if (pvpInfo.endTimer == 0 || currTime < (pvpInfo.endTimer + 300))
|
if (pvpInfo.endTimer == 0 || currTime < (pvpInfo.endTimer + 300) || pvpInfo.inHostileArea)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
UpdatePvP(false);
|
UpdatePvP(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user