Core/BattlePets: Move BattlePet stuff from SpellMgr to BattlePetMgr (#27986)

This commit is contained in:
Meji
2022-06-09 13:58:54 +02:00
committed by GitHub
parent 0943610fde
commit a1f673d1ca
8 changed files with 31 additions and 17 deletions

View File

@@ -2072,7 +2072,7 @@ void Spell::EffectLearnSpell()
bool dependent = false;
if (BattlePetSpeciesEntry const* speciesEntry = sSpellMgr->GetBattlePetSpecies(uint32(itemEffect->SpellID)))
if (BattlePetSpeciesEntry const* speciesEntry = BattlePets::BattlePetMgr::GetBattlePetSpeciesBySpell(uint32(itemEffect->SpellID)))
{
player->GetSession()->GetBattlePetMgr()->AddPet(speciesEntry->ID, BattlePets::BattlePetMgr::SelectPetDisplay(speciesEntry),
BattlePets::BattlePetMgr::RollPetBreed(speciesEntry->ID), BattlePets::BattlePetMgr::GetDefaultPetQuality(speciesEntry->ID));