Skip to content

Commit

Permalink
Core/Player: Dismiss active pet before talent reset to prevent bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
tobmaps committed May 12, 2011
1 parent cb6fca4 commit e7ff119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/game/Entities/Player/Player.cpp
Expand Up @@ -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)
{
TalentEntry const *talentInfo = sTalentStore.LookupEntry(i);
Expand Down Expand Up @@ -4405,8 +4407,6 @@ bool Player::resetTalents(bool no_cost)
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
if (Pet* pet = GetPet())
{
Expand Down

2 comments on commit e7ff119

@kliver
Copy link

@kliver kliver commented on e7ff119 May 12, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its blizzlike or only to prevent bugs?

@tobmaps
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both

Please sign in to comment.