Update Item.cpp

This commit is contained in:
bashermens
2025-12-24 21:24:17 +01:00
committed by GitHub
parent 58e3316c45
commit befa0158e2
+2 -2
View File
@@ -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;