mirror of
https://github.com/noisiver/mod-junk-to-gold.git
synced 2026-01-13 00:38:33 +00:00
Fix test
This commit is contained in:
@@ -9,6 +9,11 @@ public:
|
|||||||
|
|
||||||
void OnLootItem(Player* player, Item* item, uint32 count, ObjectGuid /*lootguid*/) override
|
void OnLootItem(Player* player, Item* item, uint32 count, ObjectGuid /*lootguid*/) override
|
||||||
{
|
{
|
||||||
|
if (!item)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (item->GetTemplate()->Quality == ITEM_QUALITY_POOR)
|
if (item->GetTemplate()->Quality == ITEM_QUALITY_POOR)
|
||||||
{
|
{
|
||||||
SendTransactionInformation(player, item, count);
|
SendTransactionInformation(player, item, count);
|
||||||
|
|||||||
Reference in New Issue
Block a user