summaryrefslogtreecommitdiff
path: root/Infinite-TM-usage.md
diff options
context:
space:
mode:
Diffstat (limited to 'Infinite-TM-usage.md')
-rw-r--r--Infinite-TM-usage.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/Infinite-TM-usage.md b/Infinite-TM-usage.md
index 9ec7aa4..4ac8f35 100644
--- a/Infinite-TM-usage.md
+++ b/Infinite-TM-usage.md
@@ -62,7 +62,7 @@ If you were to see what determines if an item can be sold, you will find that an
In order to avoid this, we will need to modify the logic that checks for whether an item can be sold. All we need to do is check if the item ID is a TM. Edit the `Task_ItemContext_Sell` function of [src/item_menu.c](../blob/master/src/item_menu.c):
```diff
- if (ItemId_GetPrice(gSpecialVar_ItemId) == 0)
-+ if (ItemId_GetPrice(gSpecialVar_ItemId) == 0)
++ if (ItemId_GetPrice(gSpecialVar_ItemId) == 0 || ItemId_GetPocket(gSpecialVar_ItemId) == POCKET_TM_HM)
{
CopyItemName(gSpecialVar_ItemId, gStringVar2);
StringExpandPlaceholders(gStringVar4, gText_CantBuyKeyItem);