-
Notifications
You must be signed in to change notification settings - Fork 21
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
What determines pet ability priority in event of an attack tie? #89
Comments
You are correct. This was done very early and is obviously not how the game operates. The health tie-break should be removed and a random tie-break needs to be added. With this change, random-state updating will need to be included so battles can continue to be seeded for a deterministic outcome. For example: sapai/tests/test_effect_queue.py Lines 226 to 246 in 8709b8f
|
Merged
manny405
pushed a commit
that referenced
this issue
Sep 29, 2022
* use self in update_pet_priority and rename to calculate_pet_priority * add pet priority tests * refactor calculate_pet_priority fixes: #89 * use f-strings and type annotations * use f-strings and type annotations * remove comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is stated that pet priority is determined by health in the event of a tie.
In a versus battle against myself, running these mosquitos over and over always lead to the right-hand mosquito going first
Not sure if this is versus exclusive, or effects arena mode the same, but it seems that health does not prioritise pets at all.
Also seems that on attack ties, the outcome is not random as something (maybe player data?) always favours one team over the other.
Should the health tie-break be removed? (and possibly the random tie-break)?
The text was updated successfully, but these errors were encountered: