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:
1 parent
331a88ef8f
commit
bc25bbcd42
1 file changed
+4
@@ -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