
Untitled
By: a guest on
Dec 14th, 2011 | syntax:
Diff | size: 0.58 KB | hits: 59 | expires: Never
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 275e259..f77842b 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -719,6 +719,9 @@ void Spell::AddUnitTarget(Unit* pVictim, SpellEffectIndex effIndex)
// Check for effect immune skip if immuned
bool immuned = pVictim->IsImmuneToSpellEffect(m_spellInfo, effIndex);
+ if (pVictim->GetTypeId() == TYPEID_UNIT && ((Creature*)pVictim)->IsTotem() && m_sender == pVictim)
+ immuned = false;
+
ObjectGuid targetGUID = pVictim->GetObjectGuid();
// Lookup target in already in list