Pelf

Pelf wild hunt 1

May 17th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.17 KB | None | 0 0
  1. diff --git a/src/server/game/Entities/Unit/StatSystem.cpp b/src/server/game/Entities/Unit/StatSystem.cpp
  2. index 77d38b9..e4e13b8 100755
  3. --- a/src/server/game/Entities/Unit/StatSystem.cpp
  4. +++ b/src/server/game/Entities/Unit/StatSystem.cpp
  5. @@ -1152,16 +1152,6 @@ bool Guardian::UpdateStats(Stats stat)
  6.                          mod = 0.725f;
  7.                          break;
  8.                  }
  9. -
  10. -                PetSpellMap::const_iterator itr = (ToPet()->m_spells.find(62758)); // Wild Hunt rank 1
  11. -                if (itr == ToPet()->m_spells.end())
  12. -                    itr = ToPet()->m_spells.find(62762);                            // Wild Hunt rank 2
  13. -
  14. -                if (itr != ToPet()->m_spells.end())                                 // If pet has Wild Hunt
  15. -                {
  16. -                    SpellEntry const* sProto = sSpellStore.LookupEntry(itr->first); // Then get the SpellProto and add the dummy effect value
  17. -                    mod += mod * (SpellMgr::CalculateSpellEffectAmount(sProto, 0) / 100.0f);
  18. -                }
  19.              }
  20.              ownersBonus = float(owner->GetStat(stat)) * mod;
  21.              // ownersBonus is multiplied by TOTAL_PCT too
Advertisement
Add Comment
Please, Sign In to add comment