Auto-translated
I tested the program and noticed that it incorrectly builds the skill tree for Yog and Terek in the "Birth of a Barbarian" campaign. However, the program passes all other tests perfectly (including with Yog and Terek, but only in a separate scenario). I am puzzled. It seems that Yog and Terek in the "Birth of a Barbarian" campaign develop in some special way. I will try to figure it out...
If you also find errors in skill tree construction, please let me know!