New API will use only Target{Party, Slot} as [2]int keys for pretty much every operation. This will replace any existing calls to battle.getPokemon, battle.getPokemonInBattle, battle.getTarget, target, and related fields in the current API. The idea is to not worry about the specific pointers as too many factors potentially cause it to be invalidated/changed. Agents will still receive a copy of the Pokemon for reference?
New API will use only Target{Party, Slot} as
[2]int
keys for pretty much every operation. This will replace any existing calls tobattle.getPokemon
,battle.getPokemonInBattle
,battle.getTarget
,target
, and related fields in the current API. The idea is to not worry about the specific pointers as too many factors potentially cause it to be invalidated/changed. Agents will still receive a copy of the Pokemon for reference?