Core/Player: Pets are unsummoned after spec switch. Fixes #180

This commit is contained in:
Manuel
2011-01-14 13:38:56 -03:00
parent 94c9764323
commit 3ab85db411
+4 -5
View File
@@ -24064,7 +24064,10 @@ void Player::ActivateSpec(uint8 spec)
_SaveActions(trans);
CharacterDatabase.CommitTransaction(trans);
UnsummonPetTemporaryIfAny();
// TO-DO: We need more research to know what happens with warlock's reagent
if (Pet* pet = GetPet())
RemovePet(pet, PET_SAVE_NOT_IN_SLOT);
ClearComboPointHolders();
ClearAllReactives();
UnsummonAllTotems();
@@ -24179,10 +24182,6 @@ void Player::ActivateSpec(uint8 spec)
_LoadActions(result);
}
ResummonPetTemporaryUnSummonedIfAny();
if (Pet* pPet = GetPet())
pPet->InitTalentForLevel(); // not processed with aura removal because pet was not active
SendActionButtons(1);
Powers pw = getPowerType();