Skip to content

Commit

Permalink
check for component herb for water
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed May 23, 2024
1 parent 2c084a7 commit b3da44e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parser/if.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ struct if_tag : public tag {
return;
} else if (dpp::lowercase(p_text) == "water>") {
if (p.display.empty() || p.display[p.display.size() - 1]) {
p.display.push_back(current_player.has_spell("water") || current_player.has_possession("water canister") || current_player.has_possession("water cannister"));
p.display.push_back(
(current_player.has_spell("water") && current_player.has_component_herb("water")) ||
current_player.has_possession("water canister") || current_player.has_possession("water cannister"));
} else {
p.display.push_back(false);
}
Expand Down

0 comments on commit b3da44e

Please sign in to comment.