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:
ariel-
2016-11-18 03:42:01 -03:00
committed by Aokromes
parent 331a88ef8f
commit bc25bbcd42

View File

@@ -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;
}
}