magic.exception.GameException: magic.exception.GameException: magic.exception.GameException: java.lang.ClassCastException: magic.model.action.ChangeStateAction cannot be cast to magic.model.MagicPermanent

GitHub | melvinzhang | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    ChangeStateAction cannot be cast MagicPermanent

    GitHub | 8 months ago | melvinzhang
    magic.exception.GameException: magic.exception.GameException: magic.exception.GameException: java.lang.ClassCastException: magic.model.action.ChangeStateAction cannot be cast to magic.model.MagicPermanent

    Root Cause Analysis

    1. java.lang.ClassCastException

      magic.model.action.ChangeStateAction cannot be cast to magic.model.MagicPermanent

      at magic.model.trigger.ThisBecomesBlockedTrigger.accept()
    2. magic.model.trigger
      ThisBecomesBlockedTrigger.accept
      1. magic.model.trigger.ThisBecomesBlockedTrigger.accept(ThisBecomesBlockedTrigger.java:8)
      1 frame
    3. magic.model
      MagicGame.executeTrigger
      1. magic.model.MagicGame.executeTrigger(MagicGame.java:1343)
      2. magic.model.MagicGame.executeTrigger(MagicGame.java:1379)
      2 frames
    4. magic.model.action
      ChangeStateAction.doAction
      1. magic.model.action.ChangeStateAction.doAction(ChangeStateAction.java:35)
      1 frame
    5. magic.model
      MagicGame.doAction
      1. magic.model.MagicGame.doAction(MagicGame.java:553)
      1 frame
    6. magic.model.action
      PlayCardFromStackAction.doAction
      1. magic.model.action.PlayCardFromStackAction.doAction(PlayCardFromStackAction.java:61)
      1 frame
    7. magic.model
      MagicGame.doAction
      1. magic.model.MagicGame.doAction(MagicGame.java:553)
      1 frame
    8. magic.model.event
      MagicEvent.executeEvent
      1. magic.model.event.MagicPlayCardEvent$1.executeEvent(MagicPlayCardEvent.java:27)
      2. magic.model.event.MagicEvent.executeEvent(MagicEvent.java:746)
      2 frames
    9. magic.model
      MagicGame.executeEvent
      1. magic.model.MagicGame.executeEvent(MagicGame.java:775)
      1 frame
    10. magic.model.stack
      MagicCardOnStack.resolve
      1. magic.model.stack.MagicItemOnStack.resolve(MagicItemOnStack.java:129)
      2. magic.model.stack.MagicCardOnStack.resolve(MagicCardOnStack.java:112)
      2 frames
    11. magic.model.action
      StackResolveAction.doAction
      1. magic.model.action.StackResolveAction.doAction(StackResolveAction.java:13)
      1 frame
    12. magic.model
      MagicGame.doAction
      1. magic.model.MagicGame.doAction(MagicGame.java:553)
      1 frame
    13. magic.model.phase
      MagicPhase.executePhase
      1. magic.model.phase.MagicPhase.executePhase(MagicPhase.java:43)
      1 frame
    14. magic.model
      MagicGame.advanceToNextEventWithChoice
      1. magic.model.MagicGame.executePhase(MagicGame.java:469)
      2. magic.model.MagicGame.advanceToNextEventWithChoice(MagicGame.java:794)
      2 frames
    15. magic.ai
      VegasWorker.run
      1. magic.ai.VegasWorker.runGame(VegasWorker.java:26)
      2. magic.ai.VegasWorker.run(VegasWorker.java:43)
      2 frames
    16. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3. java.lang.Thread.run(Unknown Source)
      3 frames