Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/server/game/Entities/Unit/StatSystem.cpp b/src/server/game/Entities/Unit/StatSystem.cpp
- index 77d38b9..8c9e636 100755
- --- a/src/server/game/Entities/Unit/StatSystem.cpp
- +++ b/src/server/game/Entities/Unit/StatSystem.cpp
- @@ -1341,19 +1331,6 @@ void Guardian::UpdateAttackPowerAndDamage(bool ranged)
- if (isHunterPet()) //hunter pets benefit from owner's attack power
- {
- float mod = 1.0f; //Hunter contribution modifier
- - if (isPet())
- - {
- - PetSpellMap::const_iterator itr = ToPet()->m_spells.find(62758); //Wild Hunt rank 1
- - if (itr == ToPet()->m_spells.end())
- - itr = ToPet()->m_spells.find(62762); //Wild Hunt rank 2
- -
- - if (itr != ToPet()->m_spells.end()) // If pet has Wild Hunt
- - {
- - SpellEntry const* sProto = sSpellStore.LookupEntry(itr->first); // Then get the SpellProto and add the dummy effect value
- - mod += (SpellMgr::CalculateSpellEffectAmount(sProto, 1) / 100.0f);
- - }
- - }
- -
- bonusAP = owner->GetTotalAttackPowerValue(RANGED_ATTACK) * 0.425f * mod;
- SetBonusDamage(int32(owner->GetTotalAttackPowerValue(RANGED_ATTACK) * 0.14f * mod));
- }
Advertisement
Add Comment
Please, Sign In to add comment