fix(Core/Scripting): Also call the OnLootItem() hook on master looted… (#13683)

fix(Core/Scripting): Also call the OnLootItem() hook on master looted items
This commit is contained in:
Skjalf
2022-11-03 21:49:12 -03:00
committed by GitHub
parent 93622ccb48
commit e64138314c

View File

@@ -2593,6 +2593,8 @@ Item* Player::StoreNewItem(ItemPosCountVec const& dest, uint32 item, bool update
stmt->SetData(1, ss.str()); stmt->SetData(1, ss.str());
CharacterDatabase.Execute(stmt); CharacterDatabase.Execute(stmt);
} }
sScriptMgr->OnLootItem(this, pItem, count, ObjectGuid::Empty);
} }
return pItem; return pItem;
} }