StevensSEC / pokemonbattlelib

A portable library for accurately simulating Pokemon battles.
GNU General Public License v3.0
12 stars 2 forks source link

HTTP API battle context endpoint no longer contains the `Opponents`, `Allies`, and `Targets` fields. #373

Closed dyc3 closed 3 years ago

dyc3 commented 3 years ago

Current Behavior

HTTP API battle context endpoint no longer contains the Opponents, Allies, and Targets fields.

Example:

{
    "Battle": {
        "Weather": 0,
        "ShiftSet": false,
        "State": 1
    },
    "Team": 0
}

To Reproduce Code snippet to reproduce the problem (if applicable)

  1. POST http://localhost:4000/battle/new
  2. GET http://localhost:4000/battle/context?id=0&target=0
  3. see that those fields are missing

Expected Behavior

The battle context should contain allies, opponents, and targets

Additional context Add any other context about the problem here.