fix(Core/Pets): spells disappearing while pet being offline (#7046)
- Closes #5320
This commit is contained in:
@@ -313,13 +313,13 @@ void WorldSession::HandleLoadPetFromDBSecondCallback(LoadPetFromDBQueryHolder co
|
|||||||
// load action bar, if data broken will fill later by default spells.
|
// load action bar, if data broken will fill later by default spells.
|
||||||
if (!is_temporary_summoned)
|
if (!is_temporary_summoned)
|
||||||
{
|
{
|
||||||
|
pet->GetCharmInfo()->LoadPetActionBar(holder.GetActionBar()); // action bar stored in already read string
|
||||||
pet->_LoadSpells(holder.GetPreparedResult(PET_LOAD_QUERY_LOADSPELLS));
|
pet->_LoadSpells(holder.GetPreparedResult(PET_LOAD_QUERY_LOADSPELLS));
|
||||||
pet->InitTalentForLevel(); // re-init to check talent count
|
pet->InitTalentForLevel(); // re-init to check talent count
|
||||||
pet->_LoadSpellCooldowns(holder.GetPreparedResult(PET_LOAD_QUERY_LOADSPELLCOOLDOWN));
|
pet->_LoadSpellCooldowns(holder.GetPreparedResult(PET_LOAD_QUERY_LOADSPELLCOOLDOWN));
|
||||||
pet->LearnPetPassives();
|
pet->LearnPetPassives();
|
||||||
pet->InitLevelupSpellsForLevel();
|
pet->InitLevelupSpellsForLevel();
|
||||||
pet->CastPetAuras(current);
|
pet->CastPetAuras(current);
|
||||||
pet->GetCharmInfo()->LoadPetActionBar(holder.GetActionBar()); // action bar stored in already read string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pet->CleanupActionBar(); // remove unknown spells from action bar after load
|
pet->CleanupActionBar(); // remove unknown spells from action bar after load
|
||||||
|
|||||||
Reference in New Issue
Block a user