Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Dec 14th, 2011  |  syntax: Diff  |  size: 0.58 KB  |  hits: 59  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
  2. index 275e259..f77842b 100644
  3. --- a/src/game/Spell.cpp
  4. +++ b/src/game/Spell.cpp
  5. @@ -719,6 +719,9 @@ void Spell::AddUnitTarget(Unit* pVictim, SpellEffectIndex effIndex)
  6.      // Check for effect immune skip if immuned
  7.      bool immuned = pVictim->IsImmuneToSpellEffect(m_spellInfo, effIndex);
  8.  
  9. +    if (pVictim->GetTypeId() == TYPEID_UNIT && ((Creature*)pVictim)->IsTotem() && m_sender == pVictim)
  10. +        immuned = false;
  11. +
  12.      ObjectGuid targetGUID = pVictim->GetObjectGuid();
  13.  
  14.      // Lookup target in already in list
  15.  
  16.