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

Abilities which replace creatures into turn order may disrupt the order during a turn. #130

Open
tjheslin1 opened this issue May 25, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@tjheslin1
Copy link
Owner

Using ListOps#replace may affect the turn order.

E.g the result of Actions#resolveDamage returns the updatedTarget and updatedOthers separately. Joining them together doesn't respect the turn order, which is determined by Combatant.index.

Once a turn has finished the queue of Combatants is re ordered according to the initiative scores. This may be too late and could result in a Combatant losing their turn or gaining an extra turn.

@tjheslin1 tjheslin1 added the bug Something isn't working label May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant