Skip to content

Commit

Permalink
fix bug when parsing an And as effect of a When (conditional effect)
Browse files Browse the repository at this point in the history
  • Loading branch information
francescofuggitti committed Nov 8, 2022
1 parent ce40e51 commit a713b01
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 @@ -207,7 +207,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 AndEffect(p_effects)
return And(*p_effects)
assert len(args) == 1
return args[0]

Expand Down

0 comments on commit a713b01

Please sign in to comment.