mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Dont change the whole block. just the required line.
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
This commit is contained in:
@@ -2158,19 +2158,16 @@ namespace LuaGlobalFunctions
|
|||||||
#endif
|
#endif
|
||||||
draft.AddItem(item);
|
draft.AddItem(item);
|
||||||
|
|
||||||
|
|
||||||
|
if (mailGUID <= 0)
|
||||||
|
{
|
||||||
#if defined AZEROTHCORE
|
#if defined AZEROTHCORE
|
||||||
if (mailGUID <= 0)
|
|
||||||
{
|
|
||||||
mailGUID = item->GetGUIDLow();
|
mailGUID = item->GetGUIDLow();
|
||||||
Eluna::Push(L, mailGUID);
|
|
||||||
}
|
|
||||||
#elif defined TRINITY
|
#elif defined TRINITY
|
||||||
if (mailGUID <= 0)
|
|
||||||
{
|
|
||||||
mailGUID = item->GetGUID();
|
mailGUID = item->GetGUID();
|
||||||
|
#endif
|
||||||
Eluna::Push(L, mailGUID);
|
Eluna::Push(L, mailGUID);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
++addedItems;
|
++addedItems;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user