magefree / magefree/mage

Game error on usage Satoru, the Infiltrator with triggered ability

Open
#12,462 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

Game error on usage [[Satoru, the Infiltrator]] -- can't processing triggered ability on stack. Without details, only error:

ERROR 2024-06-12 16:40:09,375 getSpellOrLKIStack got non-spell id mage.game.stack.StackAbility correlating to non-spell object stack ability (When {t>
java.lang.Throwable
at mage.game.GameImpl.getSpellOrLKIStack(GameImpl.java:718)
at mage.cards.s.SatoruTheInfiltratorTriggeredAbility.checkTrigger(SatoruTheInfiltrator.java:104)
at mage.abilities.TriggeredAbilities.checkTrigger(TriggeredAbilities.java:243)
at mage.abilities.TriggeredAbilities.checkTriggers(TriggeredAbilities.java:108)
at mage.game.GameState.handleEvent(GameState.java:1006)
at mage.game.GameState.handleSimultaneousEvent(GameState.java:825)
at mage.game.GameState.processAction(GameState.java:679)
at mage.abilities.AbilityImpl.resolveMode(AbilityImpl.java:251)
at mage.abilities.AbilityImpl.resolve(AbilityImpl.java:205)
at mage.game.stack.Spell.resolve(Spell.java:309)
at mage.game.GameImpl.resolve(GameImpl.java:1766)
at mage.game.GameImpl.playPriority(GameImpl.java:1689)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with mage.cards.s.SatoruTheInfiltrator.java at checkTrigger and follow the stack lookup in mage.game.GameImpl.java, especially getSpellOrLKIStack. Reproduce the Satoru, the Infiltrator triggered-ability interaction and trace the StackAbility handling shown in the error. Done means the triggered ability processes without this stack error.

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
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.