Prevent players from flagging in PvP zones.

Contributed by Iris.
This commit is contained in:
MobiusDevelopment
2021-04-16 18:10:12 +00:00
parent 66e894b70c
commit abcad46e5e
21 changed files with 21 additions and 21 deletions

View File

@ -1211,7 +1211,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
// Flag the attacker if it's a PlayerInstance outside a PvP area
final PlayerInstance player = getActingPlayer();
if (player != null)
if ((player != null) && !player.isInsideZone(ZoneId.PVP) && (player != target)) // Prevent players from flagging in PvP Zones.
{
AttackStanceTaskManager.getInstance().addAttackStanceTask(player);
player.updatePvPStatus(target);