From c87371d986d58e3a199a9ca090c83cf41152fca1 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Thu, 11 Oct 2012 01:22:06 +0000 Subject: [PATCH] Support monk statues (actually totems in-game) in totem conditions. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@584 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleCondition.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/OvaleCondition.lua b/OvaleCondition.lua index ebf266d..0944a66 100644 --- a/OvaleCondition.lua +++ b/OvaleCondition.lua @@ -26,7 +26,11 @@ local runeType = local totemType = { + -- Death Knights ghoul = 1, + -- Monks + statue = 1, + -- Shamans fire = 1, earth = 2, water = 3, @@ -2376,11 +2380,11 @@ OvaleCondition.conditions= return 0, nil, avecHate(condition[1], "spell"),0,0 end, ---- Test if the totem for shamans or the ghoul for death knights has expired. +--- Test if the totem for shamans, the ghoul for death knights, or the statue for monks has expired. -- @name TotemExpires -- @paramsig boolean --- @param id The NPC id of the totem or ghoul, or the type of totem. --- Valid types: fire, water, air, earth, ghoul. +-- @param id The NPC id of the totem, ghoul or statue, or the type of totem. +-- Valid types: fire, water, air, earth, ghoul, statue. -- @return A boolean value. -- @see TotemPresent -- @usage @@ -2401,11 +2405,11 @@ OvaleCondition.conditions= return addTime(startTime + duration, -(condition[2] or 0)) end, ---- Test if the totem for shamans or the ghoul for death knights is present. +--- Test if the totem for shamans, the ghoul for death knights, or the statue for monks is present. -- @name TotemPresent -- @paramsig boolean --- @param id The NPC id of the totem or ghoul, or the type of totem. --- Valid types: fire, water, air, earth, ghoul. +-- @param id The NPC id of the totem, ghoul or statue, or the type of totem. +-- Valid types: fire, water, air, earth, ghoul, statue. -- @return A boolean value. -- @see TotemExpires -- @usage -- 1.7.9.5