Legend_of_the_Invincibles
Legend_of_the_Invincibles copied to clipboard
Bug with multiple advancements in the same enemy turn
If a unit with special advances advances twice in the enemy's turn, when your turn comes, you can select two advances consecutively, but the first isn't applied, only the last.
To test:
- Load this save: Multiple advancements.gz
- End turn
- Philips will kill all lizards and advance twice during the enemy turn
- When the player's turn arrives, he receives two progress dialogs in a row
- Choose at ease
- Observe how only the last one takes effect, both in unit itself and in unit info (shift+c)
This is a very old thing, I remember discussing it several years ago with Dugi and at the time neither of us tried to fix it because code around advancements is quite complicated and the chances of getting multiple advancements during one turn are not too high
In the end, what I did was move Philips away enough so that he didn't kill as many lizards in one turn. It is a special unit with very low EXP to go up quickly, it is true that it is something that happens rarely.
It's curious that if one looks into "force respec" code, it seems it tries to deal with this situation, it counts the number of "backup_amlas", and after all it calls the advancement procedure the correct number of times. But for some reason it loses all the intermediate results