Core/Scripts: New ItemScript trigger, OnItemRemove
This commit is contained in:
1 parent
437b97fe73
commit
91850fa9e4
3 files changed
+15
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user