Core/BattlePets: Fixes when adding pets

Port From (https://github.com/TrinityCore/TrinityCore/commit/7c15ec00c7c1a4d5bd3ce37de6776b8a407b65b7)
This commit is contained in:
hondacrx
2021-10-17 09:16:27 -04:00
parent 0b64c4a02e
commit 6da7f7cb38
4 changed files with 12 additions and 19 deletions
@@ -357,6 +357,7 @@ namespace Game.BattlePets
updates.Add(pet);
SendUpdates(updates, true);
_owner.GetPlayer().UpdateCriteria(CriteriaType.UniquePetsOwned);
_owner.GetPlayer().UpdateCriteria(CriteriaType.LearnedNewPet, species);
}