If when a Pokémon faints, it loses friendship values. But I wonder if this principle applies to the battle facilities (ie Battle Frontier, Battle Chateau, etc) because I’ve lost count of how many times my Pokemon have fainted there.