diff options
author | maximius <none@none> | 2009-11-19 20:03:35 -0800 |
---|---|---|
committer | maximius <none@none> | 2009-11-19 20:03:35 -0800 |
commit | 72607c20ba287eb84da233d7e59aeb2450a30535 (patch) | |
tree | 8ea93e9f222ba4882c3fccdea56507952368be71 /src/game/SpellEffects.cpp | |
parent | f4808f3ff5e8cbe4fc8137bd1ca58eb2b038f76d (diff) |
*Prevent MoveFollow and MoveChase while UNIT_FLAG_DISABLE_MOVE is present, by Liberate. Closes #168.
*Some cleanup, and fix typo from cf0046bc32c6.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index d7cb8baf0fd..1b84686ae9b 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5255,7 +5255,7 @@ void Spell::EffectScriptEffect(uint32 effIndex) case 45151: { //Workaround for Range ... should be global for every ScriptEffect - float radius = GetSpellRadius(sSpellRadiusStore.LookupEntry(m_spellInfo->EffectRadiusIndex[effIndex])); + float radius = GetSpellRadiusForHostile(sSpellRadiusStore.LookupEntry(m_spellInfo->EffectRadiusIndex[effIndex])); if (unitTarget && unitTarget->GetTypeId() == TYPEID_PLAYER && unitTarget->GetDistance(m_caster) >= radius && !unitTarget->HasAura(46394) && unitTarget != m_caster) unitTarget->CastSpell(unitTarget, 46394, true); |