Coding about stopping crafting while in battle seems like going wrong. Crafting seems works only in battle, still there's nothing actual progress.
I've fixed it, thanks for noticing, it was not caused by combat, but reduction speed calculation.