mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Core/Grids: Ported cmangos/mangos-wotlk@ea99457e50
(cherry picked from commit 9299e9bde0)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user