magefree / magefree/mage

SERVER - game error on cast Gift of Doom using Morph (empty spell)

Open
#15,580 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

Error type: SERVER - game error

Client version: 1.4.60-V2 (build: 2026-06-28 13:13)
Java version: 1.8.0_201
Default charset: UTF-8
Time: 2026-07-09T02:43:15Z

Game error occurred:

java.lang.IllegalArgumentException: Something wrong, found etb aura with empty spell ability or without any targets: Gift of Doom [fe6] (CardImpl -> GiftOfDoom), source: Cast Gift of Doom using Morph
Server version: 1.4.60-V2 (build: 2026-06-28 13:13)

Game state:
Commander Free For All; T25.M1; active: Wez; stack: 0

Stack trace:
```
mage.players.PlayerImpl.moveCards(PlayerImpl.java:5023)
mage.players.PlayerImpl.moveCards(PlayerImpl.java:4977)
mage.game.stack.Spell.resolve(Spell.java:420)
mage.game.GameImpl.resolve(GameImpl.java:1842)
mage.game.GameImpl.playPriority(GameImpl.java:1763)
mage.game.turn.Step.priority(Step.java:73)
mage.game.turn.Phase.playStep(Phase.java:205)
mage.game.turn.Phase.play(Phase.java:91)
mage.game.turn.Turn.play(Turn.java:132)
mage.game.GameImpl.playTurn(GameImpl.java:1180)
mage.game.GameImpl.play(GameImpl.java:1087)
mage.game.GameImpl.start(GameImpl.java:1063)
mage.server.game.GameWorker.call(GameWorker.java:35)
mage.server.game.GameWorker.call(GameWorker.java:16)
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:750)
```

Last game logs:
2:42 AM, T24.CD: Tovolar, the Midnight Scourge [6b9] did 9 combat damage to Hanzo during the game.
2:42 AM, T24.CD: Wez loses 9 life at combat from Hollowhenge Huntmaster [8eb]
2:42 AM, T24.CD: LobsterEmperor - Ability triggers: Tovolar, the Midnight Scourge [6b9] - Whenever a Wolf or Werewolf you control deals combat damage to a player, draw a card.
2:42 AM, T24.CD: LobsterEmperor - Ability triggers: Tovolar, the Midnight Scourge [6b9] - Whenever a Wolf or Werewolf you control deals combat damage to a player, draw a card.
2:42 AM, T24.CD: LobsterEmperor draws a card
2:42 AM, T24.CD: LobsterEmperor draws a card
2:42 AM, T24.M2: LobsterEmperor puts Forest [f41] from hand onto the Battlefield
2:42 AM, T24.M2: LobsterEmperor plays Forest [f41]
2:42 AM: TURN 25 for Wez (40 - 31 - 32 - 27)
2:42 AM, T25.DR: Wez draws a card
2:42 AM, T25.M1: Wez puts Swamp [362] from hand onto the Battlefield
2:42 AM, T25.M1: Wez plays Swamp [362]
2:42 AM, T25.M1: Wez casts Kelsien, the Plague [584] from command
2:42 AM, T25.M1: Wez puts Kelsien, the Plague [584] from stack onto the Battlefield
2:42 AM, T25.M1: Hanzo - Ability triggers: Sunstrike Legionnaire [c52] - Whenever another creature enters, untap Sunstrike Legionnaire [c52].
2:43 AM, T25.M1: Wez casts a face down object [fe6] using Morph from hand

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported case by casting Gift of Doom face down using Morph, then inspect GiftOfDoom and the resolution path through mage.players.PlayerImpl.moveCards and mage.game.stack.Spell.resolve. Trace why the face-down object reaches resolution with an empty spell ability or no targets. Done means the cast no longer raises this server error and the game continues resolving the object.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.