Update cs_misc.cpp (#27418)

This commit is contained in:
kvolk2git
2021-12-18 14:24:55 +03:00
committed by GitHub
parent 4abfa61b67
commit 8ac63c7952

View File

@@ -1261,6 +1261,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);
}
@@ -1394,7 +1395,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);
}