Skip to content

Add sanity check when splitting coins#459

Merged
Mario90900 merged 1 commit into
CausticCove:mainfrom
tmyqlfpir:fix-coin-bug
Jun 2, 2026
Merged

Add sanity check when splitting coins#459
Mario90900 merged 1 commit into
CausticCove:mainfrom
tmyqlfpir:fix-coin-bug

Conversation

@tmyqlfpir
Copy link
Copy Markdown

This is a fix ported from upstream (Azure-Peak#7327)

It fixes coin duplication

About The Pull Request

This PR fixes two bugs when splitting piles of coins.

  • It now checks if the location is reachable by the user
  • It checks if the coins were consumed before trying to create a new pile

Testing Evidence

I've tested this locally and confirm it works.

Why It's Good For The Game

Fixes a bug that has existed for years.

Changelog

🆑
fix: Added guardrails for splitting coins logic
/:cl:

@github-actions github-actions Bot added the Code label May 26, 2026
@Mario90900 Mario90900 merged commit 8aa516a into CausticCove:main Jun 2, 2026
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants