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
-16
View File
@@ -750,22 +750,6 @@ namespace Game.Entities
return diet.HasAnyFlag(FoodMask);
}
public uint GetCurrentFoodBenefitLevel(uint itemlevel)
{
// -5 or greater food level
if (GetLevel() <= itemlevel + 5) //possible to feed level 60 pet with level 55 level food for full effect
return 35000;
// -10..-6
else if (GetLevel() <= itemlevel + 10) //pure guess, but sounds good
return 17000;
// -14..-11
else if (GetLevel() <= itemlevel + 14) //level 55 food gets green on 70, makes sense to me
return 8000;
// -15 or less
else
return 0; //food too low level
}
void _LoadSpellCooldowns()
{
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.SEL_PET_SPELL_COOLDOWN);
-1
View File
@@ -3266,7 +3266,6 @@ namespace Game.Entities
}
UpdateInterruptMask();
}
public void RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2 flag, uint except = 0)