Pixelmon Mod - Bug tracker

[5.0.3] Endbattle as spectator causes battle to hang fix completed for upcoming version

Ticket description:
When I do /endbattle as a spectator, it says "Player is not in battle" and drops me out of the battle screen.
The player that's battling then has a crashed battle, Run causes an error in console, doing a move will sit on waiting as well.
Doing /endbattle as this player will also say "Player is not in battle" but end the battle anyway, the wild pokemon won't start moving again until the battling pokemon is recalled.

This is the error thrown when the battling player clicks Run.
https://pastebin.com/jGcaRk4q

The command is being used as "/endbattle" to affect themselves.
The admin node also isn't given to said player.

Comments

#16132 Posted by MoeBoy76 » 17 Apr 2017 14:41

/endbattle does not take spectating into account, so this is actually an error with the command itself

#16133 Posted by Some Body » 17 Apr 2017 15:25

/endbattle took spectating into account but handled it incorrectly.

Ticket details

  • Ticket ID: 11945
  • Project: Pixelmon Mod
  • Status: Fix completed for upcoming version
  • Component: Battle
  • Project version: 5.x.x
  • Priority: Normal
  • Severity: Normal
  • Forge/Sponge: spongeforge-1.10.2-2221-5.1.0-BETA-2158, forge-1.10.2-12.18.3.2221
  • What else would be useful to know?: (unknown)
  • Assigned to: Some Body
  • Reported by: Varijon (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 17 Apr 2017 13:45
  • Ticket last visited by: MoeBoy76 on 18 Apr 2017 00:34
JOIN THE TEAM