Legend_of_the_Invincibles icon indicating copy to clipboard operation
Legend_of_the_Invincibles copied to clipboard

Bug with multiple advancements in the same enemy turn

Open Toranks opened this issue 1 year ago • 3 comments

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)

Toranks avatar Jun 27 '23 08:06 Toranks

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

Discontinuum avatar Jun 27 '23 13:06 Discontinuum

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.

Toranks avatar Jun 27 '23 13:06 Toranks

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

Discontinuum avatar Jul 09 '23 02:07 Discontinuum