Core/Loot: Fixes lootable items being able to be moved in inventory, and

also loot generated that uses conditions from being saved to the DB.
This commit is contained in:
Brian Swango committed 2014-08-18 20:03:13 -04:00
1 parent 4a3416627d
commit 87cbe5a2fc
2 files changed
+8 -14

No files matched your search

@@ -13176,13 +13176,6 @@ void Player::SwapItem(uint16 src, uint16 dst)
// SRC checks
if (pSrcItem->m_lootGenerated) // prevent swap looting item
{
//best error message found for attempting to swap while looting
SendEquipError(EQUIP_ERR_CANT_DO_RIGHT_NOW, pSrcItem, NULL);
return;
}
// check unequip potability for equipped items and bank bags
if (IsEquipmentPos(src) || IsBagPos(src))
{
@@ -13213,13 +13206,6 @@ void Player::SwapItem(uint16 src, uint16 dst)
if (pDstItem)
{
if (pDstItem->m_lootGenerated) // prevent swap looting item
{
//best error message found for attempting to swap while looting
SendEquipError(EQUIP_ERR_CANT_DO_RIGHT_NOW, pDstItem, NULL);
return;
}
// check unequip potability for equipped items and bank bags
if (IsEquipmentPos(dst) || IsBagPos(dst))
{