Core/BattlePets: Misc fixes

Port From (https://github.com/TrinityCore/TrinityCore/commit/de4eaa0de9565da604fa3b6e2b4b59efe117fd7a)
This commit is contained in:
hondacrx
2021-10-01 18:42:21 -04:00
parent 7ef98b794d
commit 9be431bb56
7 changed files with 100 additions and 6 deletions
+1 -1
View File
@@ -5439,7 +5439,7 @@ namespace Game.Spells
return;
}
if (battlePetMgr.GetPetCount(speciesId) >= SharedConst.MaxBattlePetsPerSpecies)
if (battlePetMgr.HasMaxPetCount(speciesEntry))
{
battlePetMgr.SendError(BattlePetError.CantHaveMorePetsOfThatType, creatureId); // or speciesEntry.CreatureID
SendCastResult(SpellCastResult.CantAddBattlePet);