Core/BattlePets: Move BattlePet stuff from SpellMgr to BattlePetMgr
Port From (https://github.com/TrinityCore/TrinityCore/commit/a1f673d1ca91ceea9585f6ec7267aae94d11fca7)
This commit is contained in:
@@ -75,7 +75,7 @@ namespace Game.Entities
|
||||
}
|
||||
|
||||
bool sendSpellVisual = true;
|
||||
var speciesEntry = Global.SpellMgr.GetBattlePetSpecies(trainerSpell.SpellId);
|
||||
var speciesEntry = BattlePetMgr.GetBattlePetSpeciesBySpell(trainerSpell.SpellId);
|
||||
if (speciesEntry != null)
|
||||
{
|
||||
if (player.GetSession().GetBattlePetMgr().HasMaxPetCount(speciesEntry, player.GetGUID()))
|
||||
|
||||
Reference in New Issue
Block a user