Change semantics of DoT durations to match game defaults.
Johnny C. Lam [09-22-12 - 04:36]
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
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)