Core/BattlePets: Misc fixes
Port From (https://github.com/TrinityCore/TrinityCore/commit/de4eaa0de9565da604fa3b6e2b4b59efe117fd7a)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user