From c8e85c80b1231ffe1547db6a69a3ea45fc4e4431 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Mon, 8 Oct 2018 15:13:56 +0200 Subject: [PATCH] Core/Spells: finalize the Hunter pet health scaling formular --- src/server/scripts/Spells/spell_pet.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/server/scripts/Spells/spell_pet.cpp b/src/server/scripts/Spells/spell_pet.cpp index 6cff69234cd..7bea92321c3 100644 --- a/src/server/scripts/Spells/spell_pet.cpp +++ b/src/server/scripts/Spells/spell_pet.cpp @@ -21,7 +21,6 @@ * Scriptnames of files in this file should be prefixed with "spell_dk_". */ -#include "DBCStores.h" #include "ScriptMgr.h" #include "ObjectMgr.h" #include "Pet.h" @@ -514,10 +513,6 @@ class spell_hun_pet_scaling_01 : public AuraScript { if (Player* owner = pet->GetOwner()) { - float ratio = 10.0f; - if (gtOCTHpPerStaminaEntry const* hpBase = sGtOCTHpPerStaminaStore.LookupEntry((CLASS_HUNTER - 1) * GT_MAX_LEVEL + pet->getLevel() - 1)) - ratio = hpBase->ratio; - float mod = 0.0f; if (pet->HasAura(SPELL_HUNTER_PET_FEROCITY_MARKER)) mod = 0.67f; @@ -527,7 +522,7 @@ class spell_hun_pet_scaling_01 : public AuraScript mod = 0.725f; float stamina = std::max(0.0f, owner->GetStat(STAT_STAMINA) - owner->GetCreateStat(STAT_STAMINA)); - uint32 bonus = (stamina * mod) * ratio; + uint32 bonus = (stamina * mod) * 14.0f; amount = bonus; } }