A motion making any of these defenses shall be made before pleading if a further pleading is permitted or within twenty [20] days after service of the prior pleading if none is required. If a pleading sets forth a claim for relief to which the adverse party is not required to serve a responsive pleading, any of the defenses in section (B)(2), (3), (4), (5) or (8) is waived to the extent constitutionally permissible unless made in a motion within twenty [20] days after service of the prior pleading. No defense or objection is waived by being joined with one or more other defenses or objections in a responsive pleading or motion. When a motion to dismiss is sustained for failure to state a claim under subdivision (B)(6) of this rule the pleading may be amended once as of right pursuant to Rule 15(A) within ten [10] days after service of notice of the court's order sustaining the motion and thereafter with permission of the court pursuant to such rule. If, on a motion, asserting the defense number (6), to dismiss for failure of the pleading to state a claim upon which relief can be granted, matters outside the pleading are presented to and not excluded by the court, the motion shall be treated as one for summary judgment and disposed of as provided in Rule 56. In such case, all parties shall be given reasonable opportunity to present all material made pertinent to such a motion by Rule 56.
Ind. R. Trial. P. 12