@Override
	public boolean keepCombating(Entity victim) {
		boolean isRanging = PlayerCombat.isRanging(player) != 0;
		if (!war.isCanCommence()) {
			player.getPackets().sendGameMessage("The war hasn't started yet.",
					true);
			return false;
		} else if (player.getCurrentFriendChat().getPlayers().contains(victim)) {
			player.getPackets().sendGameMessage(
					"You can't attack your own team members.", true);
			return false;
		} else if (player.getCombatDefinitions().getSpellId() > 0
				&& war.isSet(Rule.NO_MAGIC)) {
			player.getPackets().sendGameMessage(
					"You can't use magic attacks during this war.", true);
			return false;
		} else if (isRanging && war.isSet(Rule.BAN_RANGE)) {
			player.getPackets().sendGameMessage(
					"You can't use range attacks during this war.", true);
			return false;
		} else if (!isRanging && war.isSet(Rule.BAN_MELEE)
				&& player.getCombatDefinitions().getSpellId() <= 0) {
			player.getPackets().sendGameMessage(
					"You can't use melee attacks during this war.", true);
			return false;
		}
		return true;
	}