Skip to content

Commit

Permalink
Fixed selling TMs set as reusable (#3049)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsparagusEduardo authored Jun 19, 2023
1 parent b01f792 commit 186d876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/item_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 186d876

Please sign in to comment.