From 4a46be277db9f2b16408b1a98311e00f8c0c3e7e Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Sat, 22 Sep 2012 04:36:50 +0000 Subject: [PATCH] Change semantics of DoT durations to match game defaults. By default, abilities that consume combo points to apply a DoT of varying length will be listed in the spell database with a "0 CP" duration. For these DoTs, set the SpellInfo() with "duration" equal to this "0 CP" duration. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@541 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleData.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OvaleData.lua b/OvaleData.lua index f5c6b25..2b4d4cb 100644 --- a/OvaleData.lua +++ b/OvaleData.lua @@ -469,7 +469,7 @@ function OvaleData:GetDamage(spellId, state) return nil end local damage = si.base or 0 - local combo, attackpower, spellpower = 1, 0, 0 + local combo, attackpower, spellpower = 0, 0, 0 if state then combo = state.combo or combo attackpower = state.attackpower or attackpower @@ -494,14 +494,14 @@ function OvaleData:GetDuration(spellId, state) local si = self.spellInfo[spellId] if si and si.duration then local duration = si.duration - local combo, holy, spellHaste = 1, 1, 1 + local combo, holy, spellHaste = 0, 1, 1 if state then combo = state.combo or combo holy = state.holy or holy spellHaste = state.spellHaste or spellHaste end if si.adddurationcp then - duration = duration + si.adddurationcp * (combo - 1) + duration = duration + si.adddurationcp * combo end if si.adddurationholy then duration = duration + si.adddurationholy * (holy - 1) -- 1.7.9.5