diff options
author | Shocker <none@none> | 2010-11-14 23:31:32 +0200 |
---|---|---|
committer | Shocker <none@none> | 2010-11-14 23:31:32 +0200 |
commit | a3ade4a49afbdc6a7cc6b98a3d49a9d30d84e9f6 (patch) | |
tree | aa354f48c69ed56ba8be43345104ad69d0eccc15 /src/server/game/Spells/Spell.cpp | |
parent | e72106c5e9eac2567e3ce50aa522fb479f52d931 (diff) |
Core/Spells: Partially implement SPELL_ATTR_EX_USE_RADIUS_AS_MAX_DISTANCE. Currently used for correctly setting destination, still needs handling for shared sight removal/controlled unit despawn when max distance is reached
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rwxr-xr-x | src/server/game/Spells/Spell.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 07a11fa9842..4573f0357f2 100755 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -2145,7 +2145,10 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur) float angle, dist; float objSize = m_caster->GetObjectSize(); - dist = GetSpellRadiusForFriend(sSpellRadiusStore.LookupEntry(m_spellInfo->EffectRadiusIndex[i])); + if (m_spellInfo->AttributesEx & SPELL_ATTR_EX_USE_RADIUS_AS_MAX_DISTANCE) + dist = 0.0f; + else + dist = GetSpellRadiusForFriend(sSpellRadiusStore.LookupEntry(m_spellInfo->EffectRadiusIndex[i])); if (modOwner) modOwner->ApplySpellMod(m_spellInfo->Id, SPELLMOD_RADIUS, dist, this); if (dist < objSize) dist = objSize; |