Core/Spells: Removed extra health from feed pet

Port From (https://github.com/TrinityCore/TrinityCore/commit/60df74933f0bf75865ba963b33c2c1bdd9cdefbd)
This commit is contained in:
hondacrx
2021-04-22 20:40:17 -04:00
parent e64b091512
commit 47f993bff5
5 changed files with 14 additions and 25 deletions
+1 -1
View File
@@ -4996,7 +4996,7 @@ namespace Game.Spells
if (!pet.HaveInDiet(foodItem.GetTemplate()))
return SpellCastResult.WrongPetFood;
if (pet.GetCurrentFoodBenefitLevel(foodItem.GetTemplate().GetBaseItemLevel()) == 0)
if (foodItem.GetTemplate().GetBaseItemLevel() + 30 <= pet.GetLevel())
return SpellCastResult.FoodLowlevel;
if (m_caster.IsInCombat() || pet.IsInCombat())