Core/Player: Dismiss active pet before talent reset to prevent bugs
This commit is contained in:
@@ -4353,6 +4353,8 @@ bool Player::resetTalents(bool no_cost)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RemovePet(NULL, PET_SAVE_NOT_IN_SLOT, true);
|
||||||
|
|
||||||
for (uint32 i = 0; i < sTalentStore.GetNumRows(); ++i)
|
for (uint32 i = 0; i < sTalentStore.GetNumRows(); ++i)
|
||||||
{
|
{
|
||||||
TalentEntry const *talentInfo = sTalentStore.LookupEntry(i);
|
TalentEntry const *talentInfo = sTalentStore.LookupEntry(i);
|
||||||
@@ -4405,8 +4407,6 @@ bool Player::resetTalents(bool no_cost)
|
|||||||
m_resetTalentsTime = time(NULL);
|
m_resetTalentsTime = time(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
//FIXME: remove pet before or after unlearn spells? for now after unlearn to allow removing of talent related, pet affecting auras
|
|
||||||
RemovePet(NULL, PET_SAVE_NOT_IN_SLOT, true);
|
|
||||||
/* when prev line will dropped use next line
|
/* when prev line will dropped use next line
|
||||||
if (Pet* pet = GetPet())
|
if (Pet* pet = GetPet())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user