diff options
author | megamage <none@none> | 2009-01-27 17:30:21 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-27 17:30:21 -0600 |
commit | f9754e36309dd37c69109d5966d4be9fdfd902fd (patch) | |
tree | 7f0ec1d81b745d15db9740c794fd88fb26b92c30 /src/game/Spell.cpp | |
parent | beb293383cb54ef5c1a3e805ee20f2797daa6e4c (diff) |
*Fix broken cone spells and chain spells.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index bf6959e1479..e17a360f90f 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1397,11 +1397,6 @@ void Spell::SearchAreaTarget(std::list<Unit*> &TagUnitMap, float radius, const u x = m_targets.m_destX; y = m_targets.m_destY; } - else if(type == PUSH_SELF_CENTER) - { - x = m_caster->GetPositionX(); - y = m_caster->GetPositionY(); - } else if(type == PUSH_TARGET_CENTER) { Unit *target = m_targets.getUnitTarget(); @@ -1413,6 +1408,11 @@ void Spell::SearchAreaTarget(std::list<Unit*> &TagUnitMap, float radius, const u x = target->GetPositionX(); y = target->GetPositionY(); } + else + { + x = m_caster->GetPositionX(); + y = m_caster->GetPositionY(); + } Trinity::SpellNotifierCreatureAndPlayer notifier(*this, TagUnitMap, radius, type, TargetType, entry); if((m_spellInfo->AttributesEx3 & SPELL_ATTR_EX3_PLAYERS_ONLY) |