(cherry picked from commit 9299e9bde0)
This commit is contained in:
Shauren
2017-05-13 19:37:33 +02:00
committed by ariel-
parent 7874bee7bf
commit d6201e5dbb
57 changed files with 236 additions and 404 deletions

View File

@@ -4535,13 +4535,13 @@ void Spell::EffectForceDeselect(SpellEffIndex /*effIndex*/)
WorldPacket data(SMSG_BREAK_TARGET, m_caster->GetPackGUID().size());
data << m_caster->GetPackGUID();
Trinity::MessageDistDelivererToHostile notifierBreak(m_caster, &data, dist);
m_caster->VisitNearbyWorldObject(dist, notifierBreak);
Cell::VisitWorldObjects(m_caster, notifierBreak, dist);
// and selection
data.Initialize(SMSG_CLEAR_TARGET, 8);
data << uint64(m_caster->GetGUID());
Trinity::MessageDistDelivererToHostile notifierClear(m_caster, &data, dist);
m_caster->VisitNearbyWorldObject(dist, notifierClear);
Cell::VisitWorldObjects(m_caster, notifierClear, dist);
// we should also force pets to remove us from current target
Unit::AttackerSet attackerSet;