Skip to content

Commit

Permalink
fix(core): correct the forgetting to add negated
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Nov 5, 2023
1 parent 58be2dd commit 460eaa2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dar2oar_core/src/condition_parser/has.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ pub(super) fn parse_has(
Ok(match condition_name {
"HasKeyword" => ConditionSet::HasKeyword(HasKeyword {
keyword: get_into!(args[0], "keyword in HasKeyword"),
negated,
..Default::default()
}),
"HasPerk" => gen_cond!(HasPerk(perk, negated), args, "PluginValue in HasPerk"),
"HasSpell" => gen_cond!(HasSpell(spell, negated), args, "PluginValue in HasSpell"),
"HasMagicEffect" => ConditionSet::HasMagicEffect(HasMagicEffect {
magic_effect: get_try_into!(args[0], "PluginValue in HasMagicEffect")?,
negated,
..Default::default()
}),
"HasMagicEffectWithKeyword" => gen_cond!(
Expand Down

0 comments on commit 460eaa2

Please sign in to comment.