From 460eaa21d7cbe9a5b86605e7139e62a1bbaf976b Mon Sep 17 00:00:00 2001 From: SARDONYX-sard <68905624+SARDONYX-sard@users.noreply.github.com> Date: Mon, 6 Nov 2023 04:14:25 +0900 Subject: [PATCH] fix(core): correct the forgetting to add `negated` --- dar2oar_core/src/condition_parser/has.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dar2oar_core/src/condition_parser/has.rs b/dar2oar_core/src/condition_parser/has.rs index e984fbb..3872bef 100644 --- a/dar2oar_core/src/condition_parser/has.rs +++ b/dar2oar_core/src/condition_parser/has.rs @@ -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!(