Pelf

Pelf grounding totem (lich king)

May 2nd, 2012
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
  2. index fb91c3f..9366672 100755
  3. --- a/src/server/game/Entities/Unit/Unit.cpp
  4. +++ b/src/server/game/Entities/Unit/Unit.cpp
  5. @@ -10164,7 +10169,8 @@ Unit* Unit::GetMagicHitRedirectTarget(Unit* victim, SpellInfo const* spellInfo)
  6.              if (spellInfo->CheckExplicitTarget(this, magnet) == SPELL_CAST_OK
  7.                  && spellInfo->CheckTarget(this, magnet, false) == SPELL_CAST_OK
  8.                  && _IsValidAttackTarget(magnet, spellInfo)
  9. -                && IsWithinLOSInMap(magnet))
  10. +                && IsWithinLOSInMap(magnet)
  11. +               || magnet->isTotem())
  12.              {
  13.                  // TODO: handle this charge drop by proc in cast phase on explicit target
  14.                  (*itr)->GetBase()->DropCharge(AURA_REMOVE_BY_EXPIRE);
Advertisement
Add Comment
Please, Sign In to add comment