When entering combat after purchasing some units, friendly units would attack each other ending in overwhelming defeat
Log Output/Stack Trace
2021-08-11 20:26:13,882| INFO | Active scene changed to OVERWORLD.
2021-08-11 20:26:14,132| INFO | Next node, TRAINING, selected.
2021-08-11 20:26:14,133| INFO | Active scene changed to TRAINING.
2021-08-11 20:26:20,425| INFO | Active scene changed to OVERWORLD.
2021-08-11 20:26:22,985| INFO | Next node, UNKNOWN, selected.
2021-08-11 20:26:22,985| INFO | Unit enraged_raptor(4) created and added to inn's troupe.
2021-08-11 20:26:22,985| INFO | Unit horned_wurm(5) created and added to inn's troupe.
2021-08-11 20:26:22,985| INFO | Unit archer(6) created and added to inn's troupe.
2021-08-11 20:26:22,985| INFO | Unit raptor(7) created and added to inn's troupe.
2021-08-11 20:26:22,985| INFO | Unit priest(8) created and added to inn's troupe.
2021-08-11 20:26:22,986| INFO | Active scene changed to INN.
2021-08-11 20:26:25,791| INFO | Unit enraged_raptor(4) added to player's troupe.
2021-08-11 20:26:30,801| INFO | Unit horned_wurm(5) added to player's troupe.
2021-08-11 20:26:32,552| INFO | Active scene changed to OVERWORLD.
2021-08-11 20:26:33,972| INFO | Next node, COMBAT, selected.
2021-08-11 20:26:33,981| INFO | Unit spearman(9) created and added to enemy's troupe.
2021-08-11 20:26:33,981| INFO | Unit spearman(10) created and added to enemy's troupe.
2021-08-11 20:26:33,981| INFO | Unit archer(11) created and added to enemy's troupe.
2021-08-11 20:26:33,982| INFO | Active scene changed to COMBAT.
2021-08-11 20:26:35,130| INFO | Placed archer(1) at [160, 160].
2021-08-11 20:26:36,036| INFO | Placed crossbowman(2) at [160, 160].
2021-08-11 20:26:36,772| INFO | Placed pikeman(3) at [160, 160].
2021-08-11 20:26:37,520| INFO | Placed enraged_raptor(4) at [160, 160].
2021-08-11 20:26:38,945| INFO | Placed horned_wurm(5) at [160, 160].
2021-08-11 20:26:41,803| INFO | All units removed from reward's troupe.
2021-08-11 20:26:41,803| INFO | Unit skirmisher(12) created and added to reward's troupe.
2021-08-11 20:26:41,803| INFO | Unit spearman(13) created and added to reward's troupe.
2021-08-11 20:26:41,803| INFO | Unit tracker(14) created and added to reward's troupe.
2021-08-11 20:26:41,803| INFO | Active scene changed to POST_COMBAT.
2021-08-11 20:26:43,385| INFO | Active scene changed to MAIN_MENU.
The Bug
When entering combat after purchasing some units, friendly units would attack each other ending in overwhelming defeat
Log Output/Stack Trace
2021-08-11 20:26:13,882| INFO | Active scene changed to OVERWORLD. 2021-08-11 20:26:14,132| INFO | Next node, TRAINING, selected. 2021-08-11 20:26:14,133| INFO | Active scene changed to TRAINING. 2021-08-11 20:26:20,425| INFO | Active scene changed to OVERWORLD. 2021-08-11 20:26:22,985| INFO | Next node, UNKNOWN, selected. 2021-08-11 20:26:22,985| INFO | Unit enraged_raptor(4) created and added to inn's troupe. 2021-08-11 20:26:22,985| INFO | Unit horned_wurm(5) created and added to inn's troupe. 2021-08-11 20:26:22,985| INFO | Unit archer(6) created and added to inn's troupe. 2021-08-11 20:26:22,985| INFO | Unit raptor(7) created and added to inn's troupe. 2021-08-11 20:26:22,985| INFO | Unit priest(8) created and added to inn's troupe. 2021-08-11 20:26:22,986| INFO | Active scene changed to INN. 2021-08-11 20:26:25,791| INFO | Unit enraged_raptor(4) added to player's troupe. 2021-08-11 20:26:30,801| INFO | Unit horned_wurm(5) added to player's troupe. 2021-08-11 20:26:32,552| INFO | Active scene changed to OVERWORLD. 2021-08-11 20:26:33,972| INFO | Next node, COMBAT, selected. 2021-08-11 20:26:33,981| INFO | Unit spearman(9) created and added to enemy's troupe. 2021-08-11 20:26:33,981| INFO | Unit spearman(10) created and added to enemy's troupe. 2021-08-11 20:26:33,981| INFO | Unit archer(11) created and added to enemy's troupe. 2021-08-11 20:26:33,982| INFO | Active scene changed to COMBAT. 2021-08-11 20:26:35,130| INFO | Placed archer(1) at [160, 160]. 2021-08-11 20:26:36,036| INFO | Placed crossbowman(2) at [160, 160]. 2021-08-11 20:26:36,772| INFO | Placed pikeman(3) at [160, 160]. 2021-08-11 20:26:37,520| INFO | Placed enraged_raptor(4) at [160, 160]. 2021-08-11 20:26:38,945| INFO | Placed horned_wurm(5) at [160, 160]. 2021-08-11 20:26:41,803| INFO | All units removed from reward's troupe. 2021-08-11 20:26:41,803| INFO | Unit skirmisher(12) created and added to reward's troupe. 2021-08-11 20:26:41,803| INFO | Unit spearman(13) created and added to reward's troupe. 2021-08-11 20:26:41,803| INFO | Unit tracker(14) created and added to reward's troupe. 2021-08-11 20:26:41,803| INFO | Active scene changed to POST_COMBAT. 2021-08-11 20:26:43,385| INFO | Active scene changed to MAIN_MENU.