Skip to content

fix: update battle simulator to use WorkerBridge for commands#1355

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/fix-fight-button-nDFoI
Feb 4, 2026
Merged

fix: update battle simulator to use WorkerBridge for commands#1355
braedonsaunders merged 1 commit into
mainfrom
claude/fix-fight-button-nDFoI

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner

The Fight button was broken because it emitted commands to the main thread's eventBus instead of sending them to the game worker. This change updates the BattleSimulatorPanel to:

  • Use WorkerBridge.issueCommand() for attack/move commands
  • Use WorkerBridge.pause()/resume() for game state control
  • Remove unused Game.getInstance() calls
  • Add proper GameCommand type imports

https://claude.ai/code/session_01RByrKsfTJ9jf3kCjztLrY5

The Fight button was broken because it emitted commands to the main
thread's eventBus instead of sending them to the game worker. This
change updates the BattleSimulatorPanel to:

- Use WorkerBridge.issueCommand() for attack/move commands
- Use WorkerBridge.pause()/resume() for game state control
- Remove unused Game.getInstance() calls
- Add proper GameCommand type imports

https://claude.ai/code/session_01RByrKsfTJ9jf3kCjztLrY5
@braedonsaunders braedonsaunders merged commit c3dfa3a into main Feb 4, 2026
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

Successfully merging this pull request may close these issues.

2 participants