From 8fe4fc3e4730ecbe203da9aecd5b2c497a774eb8 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 30 Jan 2009 01:11:51 -0600 Subject: *Fix broken AOE spell damage bonus calculation. --HG-- branch : trunk --- src/game/SpellMgr.cpp | 2 ++ src/game/SpellMgr.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 7b33c94de07..6327a2dbe62 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -27,6 +27,8 @@ #include "Chat.h" #include "Spell.h" +bool IsAreaEffectTarget[TOTAL_SPELL_TARGETS]; + SpellMgr::SpellMgr() { for(int i = 0; i < TOTAL_SPELL_EFFECTS; ++i) diff --git a/src/game/SpellMgr.h b/src/game/SpellMgr.h index 6f645406dc6..0c73bd24c44 100644 --- a/src/game/SpellMgr.h +++ b/src/game/SpellMgr.h @@ -360,7 +360,7 @@ bool IsAuraAddedBySpell(uint32 auraType, uint32 spellId); bool IsSpellAllowedInLocation(SpellEntry const *spellInfo,uint32 map_id,uint32 zone_id,uint32 area_id); -static bool IsAreaEffectTarget[TOTAL_SPELL_TARGETS]; +extern bool IsAreaEffectTarget[TOTAL_SPELL_TARGETS]; inline bool IsAreaOfEffectSpell(SpellEntry const *spellInfo) { if(IsAreaEffectTarget[spellInfo->EffectImplicitTargetA[0]] || IsAreaEffectTarget[spellInfo->EffectImplicitTargetB[0]]) -- cgit v1.2.3