public void updatePvPStatus(L2Character target) { L2PcInstance player_target = null; if (target instanceof L2PcInstance) player_target = (L2PcInstance)target; else if (target instanceof L2Summon) player_target = target.getOwner(); if (player_target == null) return; if ((isInDuel() && player_target.getDuelId() == getDuelId())) return; if ((!ZoneManager.getInstance().checkIfInZonePvP(this) || !ZoneManager.getInstance().checkIfInZonePvP(player_target)) && player_target.getKarma() == 0) { if (checkIfPvP(player_target)) setPvpFlagLasts(System.currentTimeMillis() + Config.PVP_PVP_TIME); else setPvpFlagLasts(System.currentTimeMillis() + Config.PVP_NORMAL_TIME); if (getPvpFlag() == 0) startPvPFlag(); } } }