This commit is contained in:
Stephan Richter
2020-12-04 19:40:50 +01:00
parent 18e2753682
commit f7aee12789
6 changed files with 19 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ public class ConditionalAction extends ActionList {
@Override
public boolean fire(Context context) {
for (Condition condition : conditions) {
if (!condition.fulfilledBy(context)) return true;
if (!condition.fulfilledBy(context)) return false;
}
return super.fire(context.clone()); // actions, that happen within the conditional action list must not modify the global context.
}