Core/Scripts: New ItemScript trigger, OnItemRemove

This commit is contained in:
kontownik committed 2014-03-03 22:18:47 +01:00
1 parent 437b97fe73
commit 91850fa9e4
3 files changed
+15 -1

No files matched your search

+2 -1
View File
@@ -12654,7 +12654,8 @@ void Player::DestroyItem(uint8 bag, uint8 slot, bool update)
RemoveAurasDueToSpell(proto->Spells[i].SpellId);
ItemRemovedQuestCheck(pItem->GetEntry(), pItem->GetCount());
sScriptMgr->OnItemRemove(this, pItem);
if (bag == INVENTORY_SLOT_BAG_0)
{
SetUInt64Value(PLAYER_FIELD_INV_SLOT_HEAD + (slot * 2), 0);