aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-06 11:35:50 -0600
committermegamage <none@none>2008-12-06 11:35:50 -0600
commitfa7648ff4192bb7e4b051a27ccb19c62b9ad8091 (patch)
tree1f17484058f54d45c7de66ebe4613a3991046664 /src
parent688d243e04c835280cb7dff0572f8178e42e97e3 (diff)
*Only let grounding totem absorb magic spells.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 53261ef03ab..23295db1bb4 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -5382,7 +5382,7 @@ Unit* Spell::SelectMagnetTarget()
{
Unit* target = m_targets.getUnitTarget();
- if(target && target->HasAuraType(SPELL_AURA_SPELL_MAGNET) && !(m_spellInfo->Attributes & 0x10))
+ if(target && m_spellInfo->DmgClass == SPELL_DAMAGE_CLASS_MAGIC && target->HasAuraType(SPELL_AURA_SPELL_MAGNET)) //Attributes & 0x10 what is this?
{
Unit::AuraList const& magnetAuras = target->GetAurasByType(SPELL_AURA_SPELL_MAGNET);
for(Unit::AuraList::const_iterator itr = magnetAuras.begin(); itr != magnetAuras.end(); ++itr)