java.lang.ClassCastException: megamek.common.actions.WeaponAttackAction cannot be cast to megamek.common.actions.ArtilleryAttackAction

GitHub | arlith | 11 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ClassCastException with Princess and Artillery attacks

    GitHub | 11 months ago | arlith
    java.lang.ClassCastException: megamek.common.actions.WeaponAttackAction cannot be cast to megamek.common.actions.ArtilleryAttackAction

    Root Cause Analysis

    1. java.lang.ClassCastException

      megamek.common.actions.WeaponAttackAction cannot be cast to megamek.common.actions.ArtilleryAttackAction

      at megamek.common.weapons.ArtilleryWeaponIndirectFireHandler.handle()
    2. megamek.common.weapons
      ArtilleryWeaponIndirectFireHandler.handle
      1. megamek.common.weapons.ArtilleryWeaponIndirectFireHandler.handle(ArtilleryWeaponIndirectFireHandler.java:105)
      1 frame
    3. megamek.server
      Server$PacketPump.run
      1. megamek.server.Server.handleAttacks(Server.java:33517)
      2. megamek.server.Server.endCurrentPhase(Server.java:2868)
      3. megamek.server.Server.changeToNextTurn(Server.java:3182)
      4. megamek.server.Server.endCurrentTurn(Server.java:2268)
      5. megamek.server.Server.receiveAttack(Server.java:12444)
      6. megamek.server.Server.handle(Server.java:29452)
      7. megamek.server.Server$PacketPump.run(Server.java:348)
      7 frames