For anyone who wants this to no longer place followers directly on the player after battles, and instead place the follower behind the trainer.
Or, if the spot behind the trainer is full, check the other directions around the player. If somehow ALL of those are full, then resign to place the...