Core/Spells: Grounding Totem should respect line of sight
This commit is contained in:
@@ -10206,7 +10206,7 @@ Unit* Unit::SelectMagnetTarget(Unit* victim, SpellEntry const* spellInfo)
|
||||
Unit::AuraEffectList const& magnetAuras = victim->GetAuraEffectsByType(SPELL_AURA_SPELL_MAGNET);
|
||||
for (Unit::AuraEffectList::const_iterator itr = magnetAuras.begin(); itr != magnetAuras.end(); ++itr)
|
||||
if (Unit* magnet = (*itr)->GetBase()->GetUnitOwner())
|
||||
if (magnet->isAlive())
|
||||
if (magnet->isAlive() && IsWithinLOSInMap(magnet))
|
||||
{
|
||||
(*itr)->GetBase()->DropCharge(AURA_REMOVE_BY_EXPIRE);
|
||||
return magnet;
|
||||
|
||||
Reference in New Issue
Block a user