[18EU] Leading bidder is removed from auction early #10101
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before clicking "Create"
master
docker compose exec rack rubocop -a
docker compose exec rack rake
Implementation Notes
Explanation of Change
While investigating [18EU] "undefined method `+' for nil" when passing on a minor with no bids #9945 I saw that when a bidder has bid their maximum cash, they are removed from the auction as "can't afford" (because they would not be allowed to bid again). This is not correct in the case where they had bid all their remaining money, and all other players want to pass, as the second place bidder would win the auction. This change leaves them in the auction. If someone else does overbid them, then they are properly removed from the auction.
I tested the following scenarios:
I imported all active 18EU games and validated them, so I don't think this requires pins.
Screenshots
Any Assumptions / Hacks