diff options
| author | Rushor <PBienati@web.de> | 2016-02-11 14:40:18 +0100 |
|---|---|---|
| committer | tkrokli <tkrokli@hotmail.com> | 2016-02-11 14:41:35 +0100 |
| commit | 259690b3ce0d53cabf7ea60e7e5767014e27a268 (patch) | |
| tree | 0d2fc550409b893c19bab7f7c0e686a3e79191c8 /src | |
| parent | b4b43d03b3fbff38ebcf84be27388202fc6cb08f (diff) | |
[3.3.5] Beast Mastery hunter talent Animal Handler
The goal of this PR is to restore the correct AP values for a BM hunter:
Animal Handler, Rank 1
- Increases your pet's attack power by 5% and increases the duration of your Master's Call effect by 3 sec.
Animal Handler, Rank 2
- Increases your pet's attack power by 10%, and increases the duration of your Master's Call effect by 6 sec.
Viewed in talent calculator: http://wotlk.openwow.com/talent#cVbhzTGRb
by Rushor, closes #15361
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Entities/Unit/StatSystem.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/game/Entities/Unit/StatSystem.cpp b/src/server/game/Entities/Unit/StatSystem.cpp index a8e13a9f7db..39a97d4f5a0 100644 --- a/src/server/game/Entities/Unit/StatSystem.cpp +++ b/src/server/game/Entities/Unit/StatSystem.cpp @@ -1327,6 +1327,11 @@ void Guardian::UpdateAttackPowerAndDamage(bool ranged) } bonusAP = owner->GetTotalAttackPowerValue(RANGED_ATTACK) * 0.22f * mod; + if (AuraEffect* aurEff = owner->GetAuraEffectOfRankedSpell(34453, EFFECT_1, owner->GetGUID())) // Animal Handler + { + AddPct(bonusAP, aurEff->GetAmount()); + AddPct(val, aurEff->GetAmount()); + } SetBonusDamage(int32(owner->GetTotalAttackPowerValue(RANGED_ATTACK) * 0.1287f * mod)); } else if (IsPetGhoul() || IsRisenAlly()) //ghouls benefit from deathknight's attack power (may be summon pet or not) |
