Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squelch causing ClassCastException #3396

Closed
drmDev opened this issue May 19, 2017 · 1 comment
Closed

Squelch causing ClassCastException #3396

drmDev opened this issue May 19, 2017 · 1 comment
Assignees
Labels

Comments

@drmDev
Copy link
Contributor

@drmDev drmDev commented May 19, 2017

I believe there may be a bug with the card SQUELCH.

Happened in Modern 1 on 1 game with me (username vfedetz) versus user Wicked_Akuba 5/19/2017 around 3:00 pm ET

Description: I tried to +1 Elspeth, Sun's Champion and my opponent tried to Squeltch in response targetting the Elspeth trigger and got this error. Note that I also attempted to Trasmute Tolaria West and when my oppoent tried to cast Squeltch in response to the trigger we also recieved an error (did not copy that one but assume it is a similar issue).

--

An error has occurred on the MAGE server. Your last action will be rollbacked.
Please post the following report here: http://www.slightlymagic.net/forum/posting.php?mode=reply&f=70&t=3116

Game exception occurred: java.lang.ClassCastException: mage.game.stack.StackAbility cannot be cast to mage.abilities.ActivatedAbility
Server version: 1.4.23V5
mage.target.common.TargetActivatedAbility.possibleTargets(TargetActivatedAbility.java:106)
mage.target.common.TargetActivatedAbility.possibleTargets(TargetActivatedAbility.java:98)
mage.player.human.HumanPlayer.chooseTarget(HumanPlayer.java:381)
mage.target.TargetImpl.chooseTarget(TargetImpl.java:329)
mage.target.Targets.chooseTargets(Targets.java:99)
mage.abilities.AbilityImpl.activate(AbilityImpl.java:341)
mage.game.stack.Spell.activate(Spell.java:141)
mage.players.PlayerImpl.cast(PlayerImpl.java:997)
mage.players.PlayerImpl.activateAbility(PlayerImpl.java:1172)
mage.player.human.HumanPlayer.activateAbility(HumanPlayer.java:1269)
mage.player.human.HumanPlayer.activateAbility(HumanPlayer.java:1283)
mage.player.human.HumanPlayer.priority(HumanPlayer.java:720)
mage.game.GameImpl.playPriority(GameImpl.java:1271)
mage.game.turn.Step.priority(Step.java:87)
mage.game.turn.Phase.playStep(Phase.java:210)
mage.game.turn.Phase.play(Phase.java:115)
mage.game.turn.Turn.play(Turn.java:153)
mage.game.GameImpl.playTurn(GameImpl.java:820)
mage.game.GameImpl.play(GameImpl.java:729)
mage.game.GameImpl.start(GameImpl.java:693)
mage.server.game.GameWorker.call(GameWorker.java:60)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)

@drmDev drmDev added the bug label May 19, 2017
@ingmargoudt
Copy link
Contributor

@ingmargoudt ingmargoudt commented May 19, 2017

This line was changed in f5b4c41

Deserves a UT. Sadly we did not catch this during testing.

Other cards using this class are:
Voidmage Husher
Rimewind Cryomancer
Azorius Guildmage
Bind

@LevelX2 LevelX2 self-assigned this May 20, 2017
@LevelX2 LevelX2 closed this in 40f192e May 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants