Core: Updated to 11.2.0
Port From (https://github.com/TrinityCore/TrinityCore/commit/5cf0c6c8bb2c4e58a2d66ba5f304af34d18a4782)
This commit is contained in:
@@ -301,7 +301,16 @@ namespace Game
|
||||
SendTradeStatus(info);
|
||||
return;
|
||||
}
|
||||
|
||||
if (Player.IsAccountBankPos(item.GetSlot(), item.GetBagSlot()))
|
||||
{
|
||||
info.Status = TradeStatus.Failed;
|
||||
info.BagResult = InventoryResult.CantTradeAccountItem;
|
||||
SendTradeStatus(info);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
item = his_trade.GetItem((TradeSlots)i);
|
||||
if (item != null)
|
||||
{
|
||||
@@ -312,6 +321,14 @@ namespace Game
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (Player.IsAccountBankPos(item.GetSlot(), item.GetBagSlot()))
|
||||
{
|
||||
info.Status = TradeStatus.Failed;
|
||||
info.BagResult = InventoryResult.CantTradeAccountItem;
|
||||
SendTradeStatus(info);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (his_trade.IsAccepted())
|
||||
|
||||
Reference in New Issue
Block a user