Now there is another problem (the factions can beat each other in the city with a simple attack, but with skills they cannot ... what check to prohibit in cities to beat with a simple attack? I suppose something is necessary here
public void updatePvPStatus()
{
if (!issfaction() || !isffaction())
{
return;
}
if (isInsideZone(ZoneId.PVP))
{
return;
}
PvpFlagTaskManager.getInstance().add(this, Config.PVP_NORMAL_TIME)
if (getPvpFlag() == 0)
{
updatePvPFlag(1);
}
}
public void updatePvPStatus(Creature target)
{
final Player player = target.getActingPlayer();
if (player == null)
{
return;
}
if (isInDuel() && player.getDuelId() == getDuelId())
{
return;
}
if (player.issfaction() || player.isffaction())
{
return;
}