Core/Mail: Ignore currencies from loot for mails
Port From (https://github.com/TrinityCore/TrinityCore/commit/2d2297834681a7ba4bfa8b0db234d99f04cf447d)
This commit is contained in:
@@ -56,6 +56,9 @@ namespace Game.Mails
|
|||||||
LootItem lootitem = mailLoot.LootItemInSlot(i, receiver);
|
LootItem lootitem = mailLoot.LootItemInSlot(i, receiver);
|
||||||
if (lootitem != null)
|
if (lootitem != null)
|
||||||
{
|
{
|
||||||
|
if (lootitem.type != LootItemType.Item)
|
||||||
|
continue;
|
||||||
|
|
||||||
Item item = Item.CreateItem(lootitem.itemid, lootitem.count, lootitem.context, receiver);
|
Item item = Item.CreateItem(lootitem.itemid, lootitem.count, lootitem.context, receiver);
|
||||||
if (item != null)
|
if (item != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user