From c4b503e2c93aa967d871fea00609db6a6cf41600 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 7 Oct 2018 11:07:36 +0200 Subject: [PATCH] Core/Spells: corrected Hunter pet attack power early scaling --- src/server/scripts/Spells/spell_pet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/Spells/spell_pet.cpp b/src/server/scripts/Spells/spell_pet.cpp index a829414e28d..b5f18199cb9 100644 --- a/src/server/scripts/Spells/spell_pet.cpp +++ b/src/server/scripts/Spells/spell_pet.cpp @@ -538,8 +538,9 @@ class spell_hun_pet_scaling_01 : public AuraScript { if (Player* owner = pet->GetOwner()) { + float agility = std::max(0.0f, owner->GetCreateStat(STAT_AGILITY) - 20.0f); // Base attack power value at level 85 is 932 - int32 bonus = int32((owner->GetCreateStat(STAT_AGILITY) * 2) * 2.24038f) + 1; + int32 bonus = int32(agility* 4.8541f); // All pets gain 42.5% from owners attack power bonus += owner->GetTotalAttackPowerValue(RANGED_ATTACK) * 0.425f;