Update cs_misc.cpp (#27418)

(cherry picked from commit 8ac63c7952)
This commit is contained in:
kvolk2git
2021-12-18 14:24:55 +03:00
committed by Shauren
parent dff28aa6d4
commit 299db7af1a

View File

@@ -1323,6 +1323,7 @@ public:
if (count > 0 && item)
{
player->SendNewItem(item, count, false, true);
handler->PSendSysMessage(LANG_ADDITEM, itemId, count, handler->GetNameLink(playerTarget).c_str());
if (player != playerTarget)
playerTarget->SendNewItem(item, count, true, false);
}
@@ -1481,7 +1482,6 @@ public:
if (count > 0 && item)
{
player->SendNewItem(item, count, false, true);
handler->PSendSysMessage(LANG_ADDITEM, itemId, count, handler->GetNameLink(playerTarget).c_str());
if (player != playerTarget)
playerTarget->SendNewItem(item, count, true, false);
}