May 04, 2024, 07:59:15 am
Username:

Password:

Topic: UI - TB timer keeps to count down after turn end if enemy is out of sight.  (Read 934 times)

Slowhand

  • Posts: 278
  • Go for the eye, Boo! Go for the eyes!
    • View Profile
Bug:

The TB timer will keep counting down even after turn is finished, if the next creature on turn is not in sight.

Steps to reproduce:

Go around world map with 1PE, when encountered, run toward safety, see effect on next turn.

Possible fix:

Seems like an engine bug, that CritterCl.IsTurnBasedTurn() does not get updated in this case. I used CritterCl.StatBase[ST_CURRENT_AP] > 0 instead, and it worked. Did not test with bonus move, I guess an extra conditional check is needed for that.