magefree / mage

Magic Another Game Engine
http://xmage.today
MIT License
1.88k stars 772 forks source link

ClassCastException in copy applier of Undercover Operative #13014

Open Ffalzara82 opened 2 weeks ago

Ffalzara82 commented 2 weeks ago

Error type: SERVER - game error Client version: 1.4.54-V3 (build: 2024-09-25 12:58)

Game error occurred:

java.lang.ClassCastException: mage.game.permanent.token.EmptyToken cannot be cast to mage.game.permanent.Permanent Server version: 1.4.54-V3 (build: 2024-09-25 12:58) Stack trace: mage.cards.u.UndercoverOperativeApplier.apply(UndercoverOperative.java:59) mage.abilities.effects.common.CreateTokenCopyTargetEffect.apply(CreateTokenCopyTargetEffect.java:210) mage.abilities.AbilityImpl.resolveMode(AbilityImpl.java:222) mage.abilities.AbilityImpl.resolve(AbilityImpl.java:206) mage.abilities.TriggeredAbilityImpl.resolve(TriggeredAbilityImpl.java:205) mage.game.stack.StackAbility.resolve(StackAbility.java:85) mage.game.GameImpl.resolve(GameImpl.java:1805) mage.game.GameImpl.playPriority(GameImpl.java:1728) mage.game.turn.Step.priority(Step.java:67) mage.game.turn.Phase.playStep(Phase.java:205) mage.game.turn.Phase.play(Phase.java:91) mage.game.turn.Turn.play(Turn.java:137) mage.game.GameImpl.playTurn(GameImpl.java:1152) mage.game.GameImpl.play(GameImpl.java:1059) mage.game.GameImpl.start(GameImpl.java:1035) 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:748)

jeffwadsworth commented 2 weeks ago

[[Undercover Operative]]

github-actions[bot] commented 2 weeks ago

Undercover Operative - (Gatherer) (Scryfall) (EDHREC)

{2}{U}{U} Creature — Shapeshifter Rogue 0/0 You may have Undercover Operative enter as a copy of any creature on the battlefield, except it enters with a shield counter on it if you control that creature. (If it would be dealt damage or destroyed, remove a shield counter from it instead.)