OPINION
I. INTRODUCTION
This appeal raises the question whether the State can waive its sovereign immunity through litigation conduct. After Sea Hawk Seafoods, Inc. obtained a final judgment against Valdez Fisheries Development Association, it alleged that Valdez Fisheries fraudulently conveyed millions of dollars to the State. The State litigated the case for almost ten years before it raised the defense of sovereign immunity. Although Sea Hawk maintained that the defense had been waived, the superior court dismissed Sea Hawk's fraudulent conveyance and conspiracy claims against the State, concluding that the State cannot waive its claim of sovereign immunity by failing to raise the issue in a
II. FACTS AND PROCEEDINGS
In July 1997 a jury awarded Sea Hawk Seafoods, Inc. just over $1.5 million against Valdez Fisheries. The superior court entered final judgment against Valdez Fisheries for more than $2.1 million in compensatory damages, costs, and attorney's fees in August 1997. Apparently the State was concerned that the jury verdiet would jeopardize Valdez Fisheries ability to make its loan payments to the State, and the State demanded in August 1997 that Valdez Fisheries pay approximately $7.7 million in principal, which it owed to the State. Two months later, the State approved a new loan to Valdez Fisheries for just over $1 million in operating expenses.
Sea Hawk filed a postjudgment "petition for avoidance of fraudulent conveyance" in October 1997, claiming that the loan transactions between the State and Valdez Fisheries constituted a fraudulent conveyance and seeking that the State return all of the money it had received from Valdez Fisheries. The State filed its answer to Sea Hawk's petition in October 1997. In addition to "re-serv[ing] the right to assert additional defenses as they may become known," the State asserted that Sea Hawk failed to state a claim upon which relief can be granted and maintained that the State is not Hable for punitive damages under AS 09.50.280. In late October the State filed a motion to dismiss the petition under Alaska Civil Rule 12(c), which was converted by the trial court to a motion for summary judgment. 1
Sea Hawk filed a cross-motion for summary judgment on its fraudulent conveyance petition in November 1997. Later that month Sea Hawk filed a motion to amend the petition to add the tort claim of conspiracy against the State for participating in the alleged fraudulent conveyance and it attached the proposed amended petition to its motion. The State and Valdez Fisheries opposed the motion. According to the State, the superior court never issued a ruling on Sea Hawk's motion to amend the petition. 2
In March 1998 Valdez Fisheries filed for chapter 11 bankruptcy protection in federal bankruptcy court, resulting in a notice of automatic stay in the superior court. After the bankruptey court approved the settlement agreement executed by Sea Hawk and Valdez Fisheries, it dismissed the bankrupt-ey proceedings in April 1999. That month Sea Hawk filed a motion in the superior court that renewed its requests for rulings on its claims against the State and sought about $1 million in damages to cover the shortfall that it had failed to obtain in its settlement with Valdez Fisheries. The superior court ruled in February 2000 that the bankruptcy court retained jurisdiction to interpret whether any of Sea Hawk's claims against the State were eliminated by its settlement with Valdez Fisheries, and the court directed the parties to submit the issue to the bank-ruptey court. Following decisions by the bankruptcy court and the federal district court, the United States Court of Appeals for the Ninth Circuit ruled in February 2006 that the bankruptey court lacked jurisdiction to interpret the settlement agreement. 3
Sea Hawk and the State again filed cross-motions for summary judgment in 2007. In its opposition to Sea Hawk's summary judgment motion and reply to its own summary judgment motion, the State for the first time claimed that it was immune from Sea Hawk's suit. Sea Hawk moved to strike the State's sovereign immunity defense, contending that the State had waived this defense by failing to assert it as an affirmative defense in its answer. In October 2007 the superior court denied Sea Hawk's motion to strike the State's sovereign immunity defense and granted the State's motion for summary judgment on sovereign immunity grounds. The superior court reasoned that "only the legislature, by statute, can waive sovereign immunity" and found that "[t}here is no such statutory waiver here." The superior court remarked that "[if conduct can serve as an implied or constructive waiver, then the State has waived its sovereign immunity by failing to raise the issue after over ten years of litigation." 4 But the superior court went on to conclude that waiver of the sovereign immunity defense "cannot be implied by failing to raise the issue in a timely manner."
The superior court awarded the State twenty percent of its attorney's fees under Alaska Rule of Civil Procedure 82(a). Addressing the question whether the late assertion of the sovereign immunity defense caused Sea Hawk to expend unnecessary attorney's fees, the superior court found "that the State did not act in bad faith or in a vexatious manner" and that "even if [a motion asserting the sovereign immunity defense] had been filed much earlier, it is doubtful that it would have been decided earlier, or that it would have impacted the many layers of litigation that followed." The superior court also denied Sea Hawk's request for attorney's fees, reasoning that Alaska Appellate Rule 508(e) was inapplicable and that use of its equitable powers to override Civil Rule 82 was not warranted.
Sea Hawk appeals the superior court's rulings on sovereign immunity and attorney's fees.
III. STANDARD OF REVIEW
This appeal involves a grant of summary judgment and presents questions of law concerning waiver of sovereign immunity through litigation conduct. "We therefore apply a de novo standard of review, adopting the rule of law that is most persuasive in light of precedent, reason, and policy." 5 We will affirm a grant of summary judgment "if the evidence in the record fails to disclose a genuine issue of material fact and the moving party is entitled to judgment as a matter of law." 6
IV. DISCUSSION
The doctrine of sovereign immunity originates from "the ancient maxim that the king can do no wrong," and it has historically barred parties from bringing claims against the government.
7
But sovereign immunity has been criticized as "an anachronism, without rational basis, that has existed only by the force of inertia"
8
As the doctrine
Pursuant to article II, section 21 of the Alaska Constitution, AS 09.50.250 establishes that "contract, quasi-contract, or tort claim{s]" may be brought against the State, but it places some limitations on the State's liability for these claims. Among the exceptions to the general rule of liability are claims "aris[ing] out of ... misrepresentation, deceit, or interference with contract rights." 11 The applicability of this exception to liability in this case is not disputed. Instead, Sea Hawk argues that the State waived its claim of sovereign immunity by raising the defense after almost ten years of litigation.
As the parties recognize, the first question raised in this appeal is whether a waiver of sovereign immunity is a jurisdictional requirement. In other words, does the defense of sovereign immunity affect a court's authority to hear the case? Although some courts have held that a state's sovereign immunity relates to a court's jurisdiction over the subject matter of the case and therefore the government can raise its immunity at any time,
12
most courts do not take this approach.
13
For example, the Supreme Court of South Carolina "overrule[d] the antiquated rule that sovereign immunity is a jurisdictional bar and, accordingly, cannot be waived" to "join those jurisdictions which hold that sovereign immunity is an affirma
We have recognized that a court has subject-matter jurisdiction over a case when it has "'the legal authority ... to hear and decide [that] particular type of case." 21 Under article IV, section 1 of the Alaska Constitution, "[the jurisdiction of courts shall be prescribed by law." Accordingly, AS 22.10.020(a) provides that the superior court has "jurisdiction in all civil and criminal matters." In recognition of this provision, the State does not deny that the superior court had the legal authority to hear the civil claims brought by Sea Hawk against private parties such as Valdez Fisheries.
Instead, the State contends that AS 09.50.250 limits the superior court's authority to hear Sea Hawk's claims to the extent that they are asserted against the State. Yet the language of AS 09.50.250 indicates that the State's consent to be liable for certain activities is independent of a court's authority to hear such claims for recovery. Alaska Statute 09.50.250 provides that all civil claims 22 may be brought against the State in a state court if the court has subject-matter jurisdiction: "A person or corporation having a contract, quasi-contract, or tort claim against the state may bring an action against the state in a state court that has jurisdiction over the claim. This statute was enacted pursuant to article II, section 21 of the Alaska Constitution, 23 which authorizes the Alaska Legislature to prescribe the terms and conditions under which the State consents to be sued, and not under the constitutional provision that authorizes the legislature to establish the courts' jurisdiction. 24 Thus, the language of AS 09.50.250 does not suggest that the statute serves as a limitation on a state court's authority to hear particular types of cases. 25
We clarify now what we implied in Simpson: the State's claim of sovereign immunity is properly characterized as an affirmative defense because it is "an avoidance" under Civil Rule 8(c). This rule requires that a litigant set forth certain specific defenses as well as "any other matter constituting an avoidance or affirmative defense." We have explained that an avoidance is a matter that "avoids the action" and that "the plaintiff does not have to prove at the outset in support of the action. 32 Sovereign immunity satisfies this definition because it bars a person from bringing a claim against the State 33 and plaintiffs are not required to show that they may sue the State in order to proceed with their claims. 34
We have previously determined that "[wlhether a litigant is unduly prejudiced by an opponent's post-answer attempt to obtain summary judgment on the basis of an affirmative defense not set forth in the pleadings is an inquiry invoking virtually the same concerns as a motion to amend the pleadings with leave of court."
40
Accordingly, we have applied the same factors to determine whether a party would be prejudiced if the opposing party were permitted to raise a new affirmative defense at the summary judgment stage as to decide whether a party would be prejudiced if the opposing party were permitted to amend its pleadings.
41
These factors include "added expense and delay, a longer or more burdensome trial, or if the issues being raised in the amendment are remote from the scope of the original case."
42
A finding of prejudice, however, is not necessarily fatal Before resolving whether the State has waived its sovereign
In the present case, the trial court remarked that "[if conduct can serve as an implied or constructive waiver, then the State has waived its sovereign immunity by failing to raise the issue after over ten years of litigation." But the trial court did not provide any explanation for this conclusion nor did it determine whether Sea Hawk had been prejudiced. Moreover, the court's comments regarding its award of attorney's fees to the State appear to cut against its waiver conclusion. In addressing whether the late assertion of the sovereign immunity defense caused Sea Hawk to expend unnecessary attorney's fees, the trial court remarked that because the case had been delayed by bank-ruptey proceedings and several appeals, "even if [a motion asserting the sovereign immunity defense] had been filed much earlier, it is doubtful that it would have been decided earlier, or that it would have impacted the many layers of litigation that followed." The trial court also noted that "[it appears that in the intervening years there were concerns as to whether this court had jurisdiction to deal with issues including the sovereign immunity claim." Thus, we remand so that the trial court may apply the proper waiver analysis to determine whether the State waived its sovereign immunity defense. 44
v. CONCLUSION
The State can waive its claim of sovereign immunity by failing to raise the affirmative defense in a timely manner. Whether the State waived the defense turns on whether the plaintiff is prejudiced by the State's late assertion of the defense. To make a determination on the prejudice issue, a court must consider factors including added expense and delay, a longer or more burdensome trial, and if the issues being raised in the amendment are remote from the seope of the original case, as well as whether additional time or money can remedy the prejudicial effect of the State's delay in raising the defense. If the trial court determines that the State waived its claim of sovereign immunity, the court will need to rule on Sea Hawk's outstanding motion to amend its petition to include the conspiracy claim. Because it was error to conclude that the State cannot waive its sovereign immunity defense through litigation conduct and to fail to apply the correct test for determining waiver of the State's sovereign immunity, we REVERSE
Notes
. Although the State asserted that its motion was for judgment on the pleadings under Alaska Civil Rule 12(c), it supported its motion with documents on file with the trial court, attached an exhibit to its supporting memorandum, and acknowledged that the trial court might decide to treat its motion as a motion for summary judgment. See Alaska R. Civ. P. 12(c) ("If, on a motion for judgment on the pleadings, matters outside the pleadings are presented to and not excluded by the court, the motion shall be treated as one for summary judgment and disposed as provided in Rule 56. ...").
. Sea Hawk maintains that its complaint has been amended "by implied consent under Alaska Civil Rule 15.
. In re Valdez Fisheries Dev. Ass'n, Inc.,
. Sea Hawk added the State to its lawsuit against Valdez Fisheries on October 3, 1997, and the State for the first time claimed sovereign immunity on July 20, 2007, about nine years and ten months after the State was added.
. State Farm Mut. Auto. Ins. Co. v. Dowdy,
. Ware v. Ware,
. State v. Zia, Inc.,
. State v. Abbott,
. Zia,
. See Kinegak v. State, Dep't of Corr.,
. AS 09.50.250(3).
. See, eg., Kirk v. Kennedy,
. See, eg., Gauvin v. City of New Haven,
. Washington v. Whitaker,
. Kolitch v. Lindedahl,
. Ferree v. State,
. See Mich. Civ. R. 2.111(F)(3)(a).
. See Pa. R. Civ. P. 1030(a).
. See S.D. CoptriEp Laws § 21-32A-3 (1987).
. See Sterra v. Assoc. Marine Insts., Inc.,
. Nw. Med. Imaging, Inc. v. State, Dep't of Revenue,
. See Wright Truck & Tractor Serv., Inc. v. State,
. See State v. Haley,
. Alaska Const. art. IV, § 1.
. In State v. Zia, Inc.,
. See, eg., Kolitch v. Lindedahl,
.
. Id. at 1323.
. Id. at 1322.
. Id. at 1323. Similarly, in State, Commercial Fisheries Entry Commission v. Carlson (Carlson IIT),
. Simpson,
. Rollins v. Leibold,
. See AS 09.50.250 (listing limitations to the State's consent to be sued). See generally State v. Zia, Inc.,
. See AS 09.50.250 (waiving the State's immunity from contract, quasi-contract, and tort suits without requiring plaintiffs to prove waiver before suing the State); see also, e.g., Carlson III,
. Gamble v. Northstore P'ship,
. Id. at 483 (quoting Blake v. Gilbert,
. Id.
. Id.; see also Alaska R. Civ. P. 15(a) (providing that leave to amend a pleading "shall be freely given when justice so requires").
. Pickle v. Bd. of County Comm'rs of County of Platte,
. Gamble,
. See, eg., id. at 484; Rutledge v. Alyeska Pipeline Serv. Co.,
. O'Callaghan v. Rue,
. Cf. DeNardo v. ABC Inc. RVs Motorhomes,
. As alternative grounds for reversing the trial court's dismissal of its claims, Sea Hawk argues that the State's sovereign immunity defense was not properly before the trial court because the State first raised its claim of sovereign immunity in a reply memorandum for its summary judgment motion. The trial court appropriately considered and addressed the parties' arguments concerning whether the State's claim of sovereign immunity had been waived, as we do here. Because we decide this case on the merits and instruct the trial court on remand to determine whether the State's sovereign immunity defense has been waived, we need not address Sea Hawk's procedural argument. See Hughes v. Bo-bich,
