From 8fc1fc869bd1c7036dfa4237720e6fd66361075b Mon Sep 17 00:00:00 2001 From: Pepper0ni <93387759+Pepper0ni@users.noreply.github.com> Date: Thu, 24 Sep 2026 23:36:59 +0100 Subject: [PATCH] fix preplanted beans without souls being seen as planted on the tracker (#7251) --- soh/soh/Enhancements/randomizer/logic.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/soh/soh/Enhancements/randomizer/logic.cpp b/soh/soh/Enhancements/randomizer/logic.cpp index a9caab725d..7c1ad8a0e2 100644 --- a/soh/soh/Enhancements/randomizer/logic.cpp +++ b/soh/soh/Enhancements/randomizer/logic.cpp @@ -3,6 +3,7 @@ #include "logic.h" #include "bean_patches.h" #include "../debugger/performanceTimer.h" +#include "soh/Enhancements/randomizer/randomizerEnums.h" #include "soh/OTRGlobals.h" #include "randomizer.h" #include "randomizerEnumStrings.h" @@ -1334,6 +1335,12 @@ bool Logic::BeanPlanted(LogicVal beanEvent) { return true; } + // if we don't have the bean soul, the bean isn't really planted. + if (!HasItem(static_cast(beanEvent - LOGIC_PLANT_DEATH_MOUNTAIN_CRATER_BEAN + + RG_DEATH_MOUNTAIN_CRATER_BEAN_SOUL))) { + return false; + } + const BeanPatch* patch = FindBeanPatch(beanEvent); if (patch == nullptr) { assert(false);