magefree / magefree/mage

Companion in hand highlighted as if playable when 3 mana available, even if not enough to cast it

Open
#12,724 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

Jegantha, the Wellspring as my companion.

On my third turn, I pay {3} to move it to my hand.

On my fourth turn, before I even play a fourth land, Jegantha is highlighted in hand as if it were playable. Clicking on it does nothing, so only a visual bug.

It appears to be related to the ability that functions from outside the game, as it shows as playable in hand if I have 3+ available mana, but with only 2 available mana it no longer shows as playable.

So I speculate that somewhere in the engine, Zone.OUTSIDE isn't being handled correctly for usable zone logic for playable check.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the fourth-turn sequence with Jegantha, 3 available mana, and no fourth land. Start by tracing the playable-check logic for cards in hand and the Zone.OUTSIDE ability; done means Jegantha is not highlighted or clickable until its cost can actually be paid.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.