feat. Optional mailing when bags are full (#14)

This commit is contained in:
Walter Pagani
2023-07-10 17:57:41 -03:00
committed by GitHub
parent cb2324fecd
commit 4d52913ef1
2 changed files with 11 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ public:
player->SendNotifyLootItemRemoved(lootSlot);
player->SendLootRelease(player->GetLootGUID());
}
else
else if (sConfigMgr->GetOption<bool>("AOELoot.MailEnable", true))
{
player->SendItemRetrievalMail(item->itemid, item->count);
ChatHandler(player->GetSession()).SendSysMessage(AOE_ITEM_IN_THE_MAIL);