mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
*Fix broken cone spells and chain spells.
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user