magefree / magefree/mage

Casting Cabal Therapy in Oops! deck causes an error

Open
#11,427 4 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

Not a programmer but here's the error message:

Game exception occurred:

java.lang.IllegalArgumentException: Wrong code usage. Choices must contains some values
Server version: 1.4.52-V6-beta7 (build: 2023-11-18 11:37)
Stack trace:
mage.player.human.HumanPlayer.choose(HumanPlayer.java:474)
mage.abilities.effects.common.ChooseACardNameEffect$TypeOfName.getChoice(ChooseACardNameEffect.java:65)
mage.abilities.effects.common.ChooseACardNameEffect$TypeOfName.getChoice(ChooseACardNameEffect.java:54)
mage.abilities.effects.common.ChooseACardNameEffect.apply(ChooseACardNameEffect.java:131)
mage.abilities.AbilityImpl.resolveMode(AbilityImpl.java:192)
mage.abilities.AbilityImpl.resolve(AbilityImpl.java:179)
mage.game.stack.Spell.resolve(Spell.java:291)
mage.game.GameImpl.resolve(GameImpl.java:1717)
mage.game.GameImpl.playPriority(GameImpl.java:1642)
mage.game.turn.Step.priority(Step.java:67)
mage.game.turn.Phase.playStep(Phase.java:204)
mage.game.turn.Phase.play(Phase.java:90)
mage.game.turn.Turn.play(Turn.java:137)
mage.game.GameImpl.playTurn(GameImpl.java:1091)
mage.game.GameImpl.play(GameImpl.java:998)
mage.game.GameImpl.start(GameImpl.java:974)
mage.server.game.GameWorker.call(GameWorker.java:34)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

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

Start with mage.abilities.effects.common.ChooseACardNameEffect.java and mage.player.human.HumanPlayer.java, using the supplied stack trace and the Oops! deck's Casting Cabal Therapy interaction as the reproduction path. Determine why the choice list is empty and verify that casting the card no longer produces the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.