java.util.concurrent.ExecutionException: java.lang.ClassCastException: mage.abilities.keyword.MorphAbility cannot be cast to mage.abilities.ActivatedAbility

GitHub | LevelX2 | 5 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

    AI cant use MorphAbility

    GitHub | 5 months ago | LevelX2
    java.util.concurrent.ExecutionException: java.lang.ClassCastException: mage.abilities.keyword.MorphAbility cannot be cast to mage.abilities.ActivatedAbility

    Root Cause Analysis

    1. java.lang.ClassCastException

      mage.abilities.keyword.MorphAbility cannot be cast to mage.abilities.ActivatedAbility

      at mage.player.ai.ComputerPlayer6.simulatePriority()
    2. mage.player.ai
      ComputerPlayer6$1.call
      1. mage.player.ai.ComputerPlayer6.simulatePriority(ComputerPlayer6.java:586)
      2. mage.player.ai.ComputerPlayer7.addActions(ComputerPlayer7.java:330)
      3. mage.player.ai.ComputerPlayer6.simulatePriority(ComputerPlayer6.java:608)
      4. mage.player.ai.ComputerPlayer7.addActions(ComputerPlayer7.java:330)
      5. mage.player.ai.ComputerPlayer6$1.call(ComputerPlayer6.java:483)
      6. mage.player.ai.ComputerPlayer6$1.call(ComputerPlayer6.java:480)
      6 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames