Fix error with LastSpellEstimatedDamage() script condition.
Johnny C. Lam [07-07-13 - 14:08]
Fix error with LastSpellEstimatedDamage() script condition.
GetLastSpellInfo is part of OvaleFuture.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@950 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleCondition.lua b/OvaleCondition.lua
index 3959fa1..8a3b0cc 100644
--- a/OvaleCondition.lua
+++ b/OvaleCondition.lua
@@ -2040,12 +2040,12 @@ end
OvaleCondition.conditions.lastspellestimateddamage = function(condition)
local spellId = condition[1]
local guid = OvaleGUID:GetGUID(GetTarget(condition, "target"))
- local ap = GetLastSpellInfo(guid, spellId, "attackPower")
- local sp = GetLastSpellInfo(guid, spellId, "spellBonusDamage")
- local mh = GetLastSpellInfo(guid, spellId, "mainHandWeaponDamage")
- local oh = GetLastSpellInfo(guid, spellId, "offHandWeaponDamage")
- local combo = GetLastSpellInfo(guid, spellId, "comboPoints")
- local dm = GetLastSpellInfo(guid, condition, "damageMultiplier") or 1
+ local ap = OvaleFuture:GetLastSpellInfo(guid, spellId, "attackPower")
+ local sp = OvaleFuture:GetLastSpellInfo(guid, spellId, "spellBonusDamage")
+ local mh = OvaleFuture:GetLastSpellInfo(guid, spellId, "mainHandWeaponDamage")
+ local oh = OvaleFuture:GetLastSpellInfo(guid, spellId, "offHandWeaponDamage")
+ local combo = OvaleFuture:GetLastSpellInfo(guid, spellId, "comboPoints")
+ local dm = OvaleFuture:GetLastSpellInfo(guid, condition, "damageMultiplier") or 1
return 0, nil, OvaleData:GetDamage(spellId, ap, sp, mh, oh, combo) * dm, 0, 0
end