Skip to content

Commit

Permalink
An effect part of the condeff should be AndEffect and not And.
Browse files Browse the repository at this point in the history
  • Loading branch information
haz committed Aug 9, 2024
1 parent 8e3be08 commit 82fbbf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pddl/parser/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def cond_effect(self, args):
"""Process the 'cond_effect' rule."""
if len(args) >= 3 and args[1] == Symbols.AND.value:
p_effects = args[2:-1]
return And(*p_effects)
return AndEffect(*p_effects)
assert_(len(args) == 1)
return args[0]

Expand Down

0 comments on commit 82fbbf7

Please sign in to comment.