aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2010-02-24 21:38:51 +0100
committerQAston <none@none>2010-02-24 21:38:51 +0100
commit1e7f50b3f60006c121b4523a06fd8f1bf4445cdf (patch)
tree9fa786a5f00ba83a9f869e7f834fb3ea94680c94 /src/game/SpellEffects.cpp
parentaea3151d7be2ac8aa192d2656f8d7eec08799891 (diff)
*Shadow Mark target requirement - by PrinceCreed
*Spiritual attunemennt heal amount fix - by beberlescaraber --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 22291ff78fd..b9ef4c2bf6b 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -402,6 +402,13 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
damage = (distance > radius) ? 0 : int32(m_spellInfo->EffectBasePoints[0]*((radius - distance)/radius));
break;
}
+ // TODO: add spell specific target requirement hook for spells
+ // Shadowbolts only affects targets with Shadow Mark (Gothik)
+ case 27831:
+ case 55638:
+ if(!unitTarget->HasAura(27825))
+ return;
+ break;
// Cataclysmic Bolt
case 38441:
{