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);
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user