Update Item.cpp
This commit is contained in:
@@ -1281,12 +1281,12 @@ bool Item::CheckSoulboundTradeExpire()
|
|||||||
// MoveItemToMail, DestroyItemCount which do not handle soulboundTradeable clearing.
|
// MoveItemToMail, DestroyItemCount which do not handle soulboundTradeable clearing.
|
||||||
Player* owner = GetOwner();
|
Player* owner = GetOwner();
|
||||||
if (!owner)
|
if (!owner)
|
||||||
return true; // expired
|
return true; // remove from tradeable list
|
||||||
|
|
||||||
if (GetUInt32Value(ITEM_FIELD_CREATE_PLAYED_TIME) + 2 * HOUR < GetOwner()->GetTotalPlayedTime())
|
if (GetUInt32Value(ITEM_FIELD_CREATE_PLAYED_TIME) + 2 * HOUR < GetOwner()->GetTotalPlayedTime())
|
||||||
{
|
{
|
||||||
ClearSoulboundTradeable(GetOwner());
|
ClearSoulboundTradeable(GetOwner());
|
||||||
return true; // expired
|
return true; // remove from tradeable list
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user