Pelf

Pelf_drain_soul_siphon_2 patch

Mar 10th, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.88 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 98058a7..e9fac60 100644
  3. --- a/src/server/game/Entities/Unit/Unit.cpp
  4. +++ b/src/server/game/Entities/Unit/Unit.cpp
  5. @@ -10335,33 +10335,6 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
  6.                      DoneTotalMod *= (100.0f+(*i)->GetAmount())/100.0f;
  7.                  break;
  8.              }
  9. -            // Soul Siphon
  10. -            case 4992:
  11. -            case 4993:
  12. -            {
  13. -                // effect 1 m_amount
  14. -                int32 maxPercent = (*i)->GetAmount();
  15. -                // effect 0 m_amount
  16. -                int32 stepPercent = CalculateSpellDamage(this, (*i)->GetSpellProto(), 0);
  17. -                // count affliction effects and calc additional damage in percentage
  18. -                int32 modPercent = 0;
  19. -                AuraApplicationMap const &victimAuras = pVictim->GetAppliedAuras();
  20. -                for (AuraApplicationMap::const_iterator itr = victimAuras.begin(); itr != victimAuras.end(); ++itr)
  21. -                {
  22. -                    Aura const * aura = itr->second->GetBase();
  23. -                    SpellEntry const *m_spell = aura->GetSpellProto();
  24. -                    if (m_spell->SpellFamilyName != SPELLFAMILY_WARLOCK || !(m_spell->SpellFamilyFlags[1] & 0x0004071B || m_spell->SpellFamilyFlags[0] & 0x8044C402))
  25. -                        continue;
  26. -                    modPercent += stepPercent * aura->GetStackAmount();
  27. -                    if (modPercent >= maxPercent)
  28. -                    {
  29. -                        modPercent = maxPercent;
  30. -                        break;
  31. -                    }
  32. -                }
  33. -                DoneTotalMod *= (modPercent+100.0f)/100.0f;
  34. -                break;
  35. -            }
  36.              case 6916: // Death's Embrace
  37.              case 6925:
  38.              case 6927:
Advertisement
Add Comment
Please, Sign In to add comment