Core/BattlePets: Implemented BattlePetSpeciesFlags::NotAccountWide

Port From (https://github.com/TrinityCore/TrinityCore/commit/93c668ac50a529876054212dfef6544f70259035)
This commit is contained in:
hondacrx
2021-11-29 17:09:03 -05:00
parent 7b5524222b
commit 56f1c3d984
7 changed files with 99 additions and 17 deletions
+1 -1
View File
@@ -5445,7 +5445,7 @@ namespace Game.Spells
return;
}
if (battlePetMgr.HasMaxPetCount(speciesEntry))
if (battlePetMgr.HasMaxPetCount(speciesEntry, player.GetGUID()))
{
battlePetMgr.SendError(BattlePetError.CantHaveMorePetsOfThatType, speciesEntry.CreatureID);
SendCastResult(SpellCastResult.CantAddBattlePet);