diff options
author | megamage <none@none> | 2009-01-30 01:11:51 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-30 01:11:51 -0600 |
commit | 8fe4fc3e4730ecbe203da9aecd5b2c497a774eb8 (patch) | |
tree | fa835669dbdacd50046db3ccf58336a770ee40d6 /src | |
parent | adee7cab17e191ab9d735c326cd611f0380736d6 (diff) |
*Fix broken AOE spell damage bonus calculation.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellMgr.cpp | 2 | ||||
-rw-r--r-- | src/game/SpellMgr.h | 2 |
2 files changed, 3 insertions, 1 deletions
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]]) |