Skip to content

Commit

Permalink
Fix herb compatibility check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mysticial committed Sep 23, 2023
1 parent 00eb5b5 commit 238d5bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 238d5bd

Please sign in to comment.