Core/Player: Don't allow to deactivate PvP mode in hostile/neutral zones at PvP realms

This commit is contained in:
tobmaps
2011-05-13 18:53:01 +07:00
parent 048aa1c234
commit 7fac55db66
+1 -1
View File
@@ -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);