Share the Spoils doesn't work when it's a token made by casting from exile with Q, stacking the deck

Open
#13,074 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

The bug concerns casting from exile with the Q ability while Share the Spoils is on the battlefield as a token, so the work sits in the card-rules and cast-permission code rather than a single file. Reproduce it with a deck containing Q and Share the Spoils, then trace how the exile-cast permission is checked for tokens. Done means cards exiled by the token can be cast once per turn on your turn, verified by a test that covers this combination.

Written by the indexing model from the issue text.

Description

Game Mechanics

Describe the bug
Share the spoils doesn't allow anyone to play cards when it's a token made by casting from exile with Q, stacking the deck

To Reproduce
Steps to reproduce the behavior:

  1. Make a deck with Q and Share the spoils
  2. Cast Share the spoils after exiling it with Q
  3. See that you aren't allowed to cast any cards exiled by the share the spoils token

Expected behavior
You should be able to cast from exile once a turn with Share the spoils, on your turn

Smartphone (please complete the following information):

  • Device: Google Pixel
  • OS: Android
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
19h 28m
Merged PRs (30d)
316

Getting set up

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.

More from Card-Forge/forge

All issues in Card-Forge/forge

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.