Verify that an aura has associated SpellInfo before using it.
Johnny C. Lam [12-09-13 - 02:14]
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
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