From 238d5bdac34b5bca900cf5c06754c91b17084fac Mon Sep 17 00:00:00 2001 From: Mysticial Date: Sat, 23 Sep 2023 00:31:32 -0700 Subject: [PATCH] Fix herb compatibility check. --- .../PokemonSV/Options/PokemonSV_SandwichMakerOption.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SerialPrograms/Source/PokemonSV/Options/PokemonSV_SandwichMakerOption.cpp b/SerialPrograms/Source/PokemonSV/Options/PokemonSV_SandwichMakerOption.cpp index c8c64f137..3fe2f34d3 100644 --- a/SerialPrograms/Source/PokemonSV/Options/PokemonSV_SandwichMakerOption.cpp +++ b/SerialPrograms/Source/PokemonSV/Options/PokemonSV_SandwichMakerOption.cpp @@ -516,8 +516,8 @@ std::string SandwichMakerOption::check_herb_compatibility(HerbaSelection herb1, PokemonType::rock, PokemonType::ice, }; - if (TYPES.contains(type)){ - return "1x Salty and 1x Sour herb are incompatible with flying, ground, rock, and ice."; + if (!TYPES.contains(type)){ + return "1x Salty and 1x Sour herb are only compatible with flying, ground, rock, and ice."; } } if ((herb1 == HerbaSelection::bitter_herba_mystica && herb2 == HerbaSelection::sour_herba_mystica) ||