Core/Spells: Grounding Totem should respect line of sight

This commit is contained in:
Sarjuuk
2011-07-24 00:44:29 +07:00
committed by tobmaps
parent bfb5032937
commit f526b61e1a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -10206,7 +10206,7 @@ Unit* Unit::SelectMagnetTarget(Unit* victim, SpellEntry const* spellInfo)
Unit::AuraEffectList const& magnetAuras = victim->GetAuraEffectsByType(SPELL_AURA_SPELL_MAGNET); Unit::AuraEffectList const& magnetAuras = victim->GetAuraEffectsByType(SPELL_AURA_SPELL_MAGNET);
for (Unit::AuraEffectList::const_iterator itr = magnetAuras.begin(); itr != magnetAuras.end(); ++itr) for (Unit::AuraEffectList::const_iterator itr = magnetAuras.begin(); itr != magnetAuras.end(); ++itr)
if (Unit* magnet = (*itr)->GetBase()->GetUnitOwner()) if (Unit* magnet = (*itr)->GetBase()->GetUnitOwner())
if (magnet->isAlive()) if (magnet->isAlive() && IsWithinLOSInMap(magnet))
{ {
(*itr)->GetBase()->DropCharge(AURA_REMOVE_BY_EXPIRE); (*itr)->GetBase()->DropCharge(AURA_REMOVE_BY_EXPIRE);
return magnet; return magnet;
@@ -34,7 +34,7 @@ at_torp_farm
at_warsong_farms q11686 at_warsong_farms q11686
at_stormwright_shelf q12741 at_stormwright_shelf q12741
at_last_rites q12019 at_last_rites q12019
at_sholozar_waygate q12548 at_sholazar_waygate q12548
EndContentData */ EndContentData */
#include "ScriptPCH.h" #include "ScriptPCH.h"
@@ -328,7 +328,7 @@ class AreaTrigger_at_last_rites : public AreaTriggerScript
}; };
/*###### /*######
## at_sholozar_waygate ## at_sholazar_waygate
######*/ ######*/
enum eWaygate enum eWaygate