From 8828f1fba6211b052f12b7d7af614e34270fd746 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Sun, 7 Jul 2013 14:08:13 +0000 Subject: [PATCH] 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 --- OvaleCondition.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 1.7.9.5