From 688857b0f2c6e68375646925febd9f175e20f856 Mon Sep 17 00:00:00 2001 From: 55Honey <71938210+55Honey@users.noreply.github.com> Date: Mon, 15 Mar 2021 12:15:38 +0100 Subject: [PATCH] Added guid returns from SendMail Previously only AC received guid returns from this PR. This commit adds a return for all cores. --- GlobalMethods.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/GlobalMethods.h b/GlobalMethods.h index 125285f..ce610e9 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -2156,7 +2156,9 @@ namespace LuaGlobalFunctions item->SaveToDB(); #endif draft.AddItem(item); -#if defined AZEROTHCORE +#if defined TRINITY + Eluna::Push(L, item->GetGUID().GetCounter()); +#else Eluna::Push(L, item->GetGUIDLow()); #endif ++addedItems; @@ -2170,11 +2172,7 @@ namespace LuaGlobalFunctions #else draft.SendMailTo(MailReceiver(receiverPlayer, MAKE_NEW_GUID(receiverGUIDLow, 0, HIGHGUID_PLAYER)), sender); #endif -#if defined AZEROTHCORE return addedItems; -#else - return 0; -#endif } /**