From d466c524168e6c69f056ba05d7f1f260d81acad4 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Mon, 9 Dec 2013 02:14:19 +0000 Subject: [PATCH] Verify that an aura has associated SpellInfo before using it. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1244 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleFuture.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvaleFuture.lua b/OvaleFuture.lua index bcc0f91..0a3eb58 100644 --- a/OvaleFuture.lua +++ b/OvaleFuture.lua @@ -123,7 +123,7 @@ local function GetDamageMultiplier(spellId, auraObject) if auraObject:IsActiveAura(aura) then local siAura = OvaleData.spellInfo[auraId] -- If an aura does stacking damage, then it needs to set stacking=1. - if siAura.stacking and siAura.stacking > 0 then + if siAura and siAura.stacking and siAura.stacking > 0 then multiplier = 1 + (multiplier - 1) * aura.stacks end damageMultiplier = damageMultiplier * multiplier -- 1.7.9.5