Core/BattlePets: Improvements when enabling battle pets
Port From (https://github.com/TrinityCore/TrinityCore/commit/0a8f79ad5ad5afbf6a6aedc9ad46c3b774877b31)
This commit is contained in:
@@ -3332,6 +3332,10 @@ namespace Game.Entities
|
||||
_restMgr.AddRestBonus(RestTypes.XP, time_diff * _restMgr.CalcExtraPerSec(RestTypes.XP, bubble));
|
||||
}
|
||||
|
||||
// Unlock battle pet system if it's enabled in bnet account
|
||||
if (GetSession().GetBattlePetMgr().IsBattlePetSystemEnabled())
|
||||
LearnSpell(SharedConst.SpellBattlePetTraining, false);
|
||||
|
||||
m_achievementSys.CheckAllAchievementCriteria(this);
|
||||
m_questObjectiveCriteriaMgr.CheckAllQuestObjectiveCriteria(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user