Quantcast

Add method OvaleStance:GetStance() to return the current stance name.

Johnny C. Lam [11-10-13 - 00:29]
Add method OvaleStance:GetStance() to return the current stance name.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1139 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleStance.lua
diff --git a/OvaleStance.lua b/OvaleStance.lua
index fb48e89..3e80173 100644
--- a/OvaleStance.lua
+++ b/OvaleStance.lua
@@ -134,6 +134,11 @@ function OvaleStance:Debug()
 	Ovale:FormatPrint("current stance: %s", self_stance)
 end

+-- Return the current stance's name.
+function OvaleStance:GetStance()
+	return self_stanceList[self_stance]
+end
+
 -- Return true if the current stance matches the given name.
 function OvaleStance:IsStance(name)
 	if not name or not self_stance then return false end