54.4. On ruling on whether an action or pleading is improper, the court may order a provision for costs to be reimbursed, condemn a party to pay, in addition to costs, damages in reparation for the prejudice suffered by another party, including the fees and extrajudicial costs incurred by that party, and, if justified by the circumstances, award punitive damages.
If the amount of the damages is not admitted or may not be established easily at the time the action or pleading is declared improper, the court may summarily rule on the amount within the time and under the conditions determined by the court.