Battle

Pokemon battle in progress

Fields

id: ID!

First trainer

trainer1: Trainer!

Second trainer (null for wild battles)

trainer2: Trainer

Wild Pokemon (if applicable)

wildPokemon: Pokemon

Battle victor

winner: Trainer

Battle start time

startTime: String!

Battle end time

endTime: String

Battle ruleset

format: BattleFormat!

Current weather

weather: Weather

Current terrain

terrain: Terrain

Turn counter

turns: Int!

Battle event log

log: [BattleLogEntry!]!

Current field effects

fieldEffects: [FieldEffect!]!

Prize money or items

rewards: BattleRewards

Whether battle is ranked

isRanked: Boolean!

Spectator count

spectators: Int!