mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Spell: register items received through SPELL_EFFECT_SUMMON_CHANGE_ITEM for quest credit
- Also sends proper SMSG_ITEM_PUSH_RESULT packet Closes #3505
This commit is contained in:
@@ -1937,6 +1937,8 @@ void Spell::EffectSummonChangeItem(SpellEffIndex effIndex)
|
||||
m_castItemEntry = 0;
|
||||
|
||||
player->StoreItem(dest, pNewItem, true);
|
||||
player->SendNewItem(pNewItem, 1, true, false);
|
||||
player->ItemAddedQuestCheck(newitemid, 1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -1981,6 +1983,8 @@ void Spell::EffectSummonChangeItem(SpellEffIndex effIndex)
|
||||
|
||||
player->EquipItem(dest, pNewItem, true);
|
||||
player->AutoUnequipOffhandIfNeed();
|
||||
player->SendNewItem(pNewItem, 1, true, false);
|
||||
player->ItemAddedQuestCheck(newitemid, 1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user