Catchable NPC Pokemon

When battling NPC's you can forfeit and then before it completes teleport away and back allowing the NPC's pokemon to be catchable. This also had some weird interaction with the winning script. My Elite 4 are set so the rewards are given after the 4th NPC, one of the scripts run increases the box size of the player by 25 using pebbles pcresizer. The player originally tried this bug on the 3rd NPC and somehow they had their PC increased, but none of the other reward scripts ran, so completely unsure what happened there.

Start the battle -> Forfeit -> instantly teleport away, and the back -> battle the NPC's pokemon which is now "wild" and catchable.

Seems to skip the despawning of the NPC's pokemon when unloading and loading the area in really fast, causing the pokemon to stay after the battles been ended.

The pokemon should be completely unloaded / not battle-able even if the player teleports away and back.

Cobblemon 1.6 - Fabric Mod loader

Too many to list, things used in some of the reward scripts are pebbles pcresizer / zonary's pokeutils / pebbles crate keys