fix(Core/Pets): Warlock should not be refunded with Soul Shard on log… (#12409)
fix(Core/Pets): Warlock should not be refunded with Soul Shard on logging out. Fixes #12058
This commit is contained in:
parent
bb8c9400c2
commit
b2c3bd06e9
1 changed files with 1 additions and 1 deletions
|
|
@ -8909,7 +8909,7 @@ void Player::RemovePet(Pet* pet, PetSaveMode mode, bool returnreagent)
|
|||
return;
|
||||
}
|
||||
|
||||
if (returnreagent && (pet || m_temporaryUnsummonedPetNumber) && !InBattleground())
|
||||
if (returnreagent && (pet || (m_temporaryUnsummonedPetNumber && (!m_session || !m_session->PlayerLogout()))) && !InBattleground())
|
||||
{
|
||||
//returning of reagents only for players, so best done here
|
||||
uint32 spellId = pet ? pet->GetUInt32Value(UNIT_CREATED_BY_SPELL) : m_oldpetspell;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue