sketchbook: behavior.SetFiltersDisabled counts as a move
Case number: | 699969-2005476 |
Topic: | General |
Opened by: | LociOiling |
Status: | Closed |
Type: | Bug |
Opened on: | Saturday, July 7, 2018 - 18:21 |
Last modified: | Saturday, July 7, 2018 - 18:50 |
I noticed that some common recipes leak moves before they display an initial dialog.
It turns out that SetFiltersDisabled is the culprit. Recipes may check the filter bonus by first enabling filters (just to be sure), getting the score, disabling the filters and getting the score, then enabling the filters again. The current filter bonus is the difference in the two scores, but the recipe just leaked three moves without doing anything.
Administrative calls like behavior.SetFiltersDisabled shouldn't deduct moves.
This problem is easy to work around with quicksave and quickload.
The following one-line recipes demonstrates the issue:
behavior.SetFiltersDisabled(false)
»
Closing this one, somehow created a duplicate.
https://fold.it/portal/node/2005475 instead