From 82d2ac24d6aad3fe4cc3b01fe6a9574200310d53 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Sun, 10 Nov 2013 00:29:52 +0000 Subject: [PATCH] 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 --- OvaleStance.lua | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 1.7.9.5