diff options
| -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]])  | 
