Card-Forge / Card-Forge/forge

Canceling casts sometimes freezes the game

Open
#8,762 4 comments 0 reactions 1 assignee Claimed by @tehdiplomat View on GitHub
BUG Experimental Restore Game Mechanics keep
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
158

Description

**Describe the bug**
Tried casting a Sacred cat, realised that I don't have enough mana and cancelled cast, adn then thegame froze.

**To Reproduce**
1. Cast any spell for which you don't have enough mana (However It seems that bug can trigger even if you have enough mana, but game can't process it as enough and can't pay by auto (Got this bug with phyrexian mana some time ago)
2. Cancel the cast
3. The bug should trigger, but it seems to be random?

**Expected behavior**
The cast cancel should just allow you to play normally

**Desktop (please complete the following information):**
OS: Windows
Browser: chrome
Version 2.0.0.6-SNAPSHOT-09.20

Here is the log, it ends at the moment where I can't cast the spell
Played against the Ai

[forge.log](https://github.com/user-attachments/files/22466184/forge.log)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.