diff options
Diffstat (limited to 'soh/soh')
| -rw-r--r-- | soh/soh/Enhancements/randomizer/hook_handlers.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/soh/soh/Enhancements/randomizer/hook_handlers.cpp b/soh/soh/Enhancements/randomizer/hook_handlers.cpp index e14498097..c9fd6f708 100644 --- a/soh/soh/Enhancements/randomizer/hook_handlers.cpp +++ b/soh/soh/Enhancements/randomizer/hook_handlers.cpp @@ -1535,7 +1535,10 @@ void RandomizerOnVanillaBehaviorHandler(GIVanillaBehavior id, bool* should, va_l case VB_TEMP_B_RESTORE_SWORDLESS: // Convert the swordless sentinel back into an empty (swordless) B button. if (gSaveContext.buttonStatus[0] == SWORDLESS_STATUS) { - gSaveContext.equips.buttonItems[0] = ITEM_NONE; + u8 bItem = gSaveContext.equips.buttonItems[0]; + if (!((bItem >= ITEM_SWORD_KOKIRI && bItem <= ITEM_SWORD_BGS) || bItem == ITEM_SWORD_KNIFE)) { + gSaveContext.equips.buttonItems[0] = ITEM_NONE; + } gSaveContext.buttonStatus[0] = BTN_ENABLED; } break; |
