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:
@@ -8909,7 +8909,7 @@ void Player::RemovePet(Pet* pet, PetSaveMode mode, bool returnreagent)
|
|||||||
return;
|
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
|
//returning of reagents only for players, so best done here
|
||||||
uint32 spellId = pet ? pet->GetUInt32Value(UNIT_CREATED_BY_SPELL) : m_oldpetspell;
|
uint32 spellId = pet ? pet->GetUInt32Value(UNIT_CREATED_BY_SPELL) : m_oldpetspell;
|
||||||
|
|||||||
Reference in New Issue
Block a user