From 95ea1b0c6923ab10142aaf0368e6efa50b8b0218 Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Fri, 8 May 2009 09:28:06 +0000 Subject: [PATCH] - druid: fixes for balance - elemental shaman fixes - added TotemExpires() condition git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@56 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Condition.lua | 26 +++++++++++++++- defaut/Chaman.lua | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++- defaut/Druide.lua | 20 +++++++++---- 3 files changed, 125 insertions(+), 7 deletions(-) diff --git a/Condition.lua b/Condition.lua index 39bb292..17ce316 100644 --- a/Condition.lua +++ b/Condition.lua @@ -8,6 +8,14 @@ local runeType = death = 4 } +local totemType = +{ + fire = 1, + earth = 2, + water = 3, + air = 4 +} + local function avecHate(temps, hate) if (not hate) then return temps @@ -338,8 +346,9 @@ Ovale.conditions= -- mine : 1 means that the debuff must be yours TargetDebuffPresent = function(condition) local timeLeft, stacksLeft = GetTargetAura(condition, "HARMFUL", "target") + local tempsMin = avecHate(condition[2], condition.haste) - if (timeLeft and (condition[2]==nil or timeLeft>condition[2])) then + if (timeLeft and (condition[2]==nil or timeLeft>tempsMin)) then if (stacksLeft~=0 and condition.stacks and stacksLeft