Pelf

Pelf dispel check

Apr 24th, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.94 KB | None | 0 0
  1. diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
  2. index a8f5665..adc6401 100644
  3. --- a/src/server/game/Spells/Spell.cpp
  4. +++ b/src/server/game/Spells/Spell.cpp
  5. @@ -5253,7 +5267,7 @@ SpellCastResult Spell::CheckCast(bool strict)
  6.      }
  7.  
  8.      // Dispel check - only if the first effect is dispel
  9. -    if (!m_IsTriggeredSpell && (m_spellInfo->Effect[EFFECT_0] == SPELL_EFFECT_DISPEL))
  10. +    /*if (!m_IsTriggeredSpell && (m_spellInfo->Effect[EFFECT_0] == SPELL_EFFECT_DISPEL))
  11.          if (Unit const * target = m_targets.getUnitTarget())
  12.              if (!GetSpellRadius(m_spellInfo, EFFECT_0, target->IsFriendlyTo(m_caster)))
  13.              {
  14. @@ -5300,7 +5314,7 @@ SpellCastResult Spell::CheckCast(bool strict)
  15.                      if (failed)
  16.                          return SPELL_FAILED_NOTHING_TO_DISPEL;
  17.                  }
  18. -            }
  19. +            }*/
  20.  
  21.      for (int i = 0; i < MAX_SPELL_EFFECTS; i++)
  22.      {
Advertisement
Add Comment
Please, Sign In to add comment