From 20232099002e5481b67c64475d7fd51ee14eeab8 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Fri, 24 May 2019 12:02:59 +0200 Subject: [PATCH] Core/Pets: pets will now properly scale with the bonus health from their owner's stamina instead of a fixed value to make them scale correctly on lower levels --- src/server/scripts/Spells/spell_pet.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server/scripts/Spells/spell_pet.cpp b/src/server/scripts/Spells/spell_pet.cpp index 5072a71a00..ce0afdc691 100644 --- a/src/server/scripts/Spells/spell_pet.cpp +++ b/src/server/scripts/Spells/spell_pet.cpp @@ -530,9 +530,7 @@ class spell_hun_pet_scaling_01 : public AuraScript else if (pet->HasAura(SPELL_HUNTER_PET_CUNNING_MARKER)) mod = 0.725f; - float stamina = owner->GetStat(STAT_STAMINA); - uint32 bonus = (stamina * mod) * 14.0f; - amount = bonus; + amount = int32(owner->GetHealthBonusFromStamina() * mod); } } }