aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-02-03 19:12:33 +0100
committerQAston <none@none>2009-02-03 19:12:33 +0100
commit8b36eb7f0cd51067198d907bd799e4f5ea3d21c4 (patch)
treeb24d6f5487329161b66f16df28f03e7bfd5d4044 /src/game/Spell.cpp
parentc3c36ec1c8cac02f402c344c07694b24390901a7 (diff)
*Handle SPELL_AURA_MOD_ABILITY_AFFECTED_TARGETS.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index cdc470c80f2..b83607a49a9 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1442,6 +1442,13 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap)
uint32 EffectChainTarget = m_spellInfo->EffectChainTarget[i];
uint32 unMaxTargets = m_spellInfo->MaxAffectedTargets;
+ Unit::AuraList const& Auras = m_caster->GetAurasByType(SPELL_AURA_MOD_ABILITY_AFFECTED_TARGETS);
+ for(Unit::AuraList::const_iterator j = Auras.begin();j != Auras.end(); ++j)
+ {
+ if((*j)->isAffectedOnSpell(m_spellInfo))
+ unMaxTargets+=(*j)->GetModifier()->m_amount;
+ }
+
if(m_originalCaster)
{
if(Player* modOwner = m_originalCaster->GetSpellModOwner())