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