Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destroyed units are not removed at the end of turn #27

Open
LeFiz opened this issue Oct 28, 2024 · 0 comments
Open

Destroyed units are not removed at the end of turn #27

LeFiz opened this issue Oct 28, 2024 · 0 comments

Comments

@LeFiz
Copy link
Contributor

LeFiz commented Oct 28, 2024

According to match resolution order a unit that gets sapped to negative energy should be removed at step 5 of resolution. It should not be there at the start of the next turn, but in reality it is (it is removed the very next turn though).

Edit: according to the comments in the code it's a feature so that the user can see the destroyed unit. But as was pointed out on discord: the dead units still generate points (as they are in unit_mask and therefore in compute_unit_counts_map) and the agent still generates actions for these units.

Sapped unit is still there with negative energy after turn resolves:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant