*Fix broken AOE spell damage bonus calculation.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-30 01:11:51 -06:00
parent adee7cab17
commit 8fe4fc3e47
2 changed files with 3 additions and 1 deletions

View File

@@ -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)

View File

@@ -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]])