Fixed selling TMs set as reusable (#3049)

This commit is contained in:
Eduardo Quezada D'Ottone 2023-06-19 16:19:29 -04:00 committed by GitHub
parent b01f7927cf
commit 186d8763ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2075,7 +2075,7 @@ static void Task_ItemContext_Sell(u8 taskId)
{
s16 *data = gTasks[taskId].data;
if (ItemId_GetPrice(gSpecialVar_ItemId) == 0)
if (ItemId_GetPrice(gSpecialVar_ItemId) == 0 || ItemId_GetImportance(gSpecialVar_ItemId))
{
CopyItemName(gSpecialVar_ItemId, gStringVar2);
StringExpandPlaceholders(gStringVar4, gText_CantBuyKeyItem);