The ghosts that only show up at night work that way because they’re Pokémon coded to show up at night, not because they’re ghosts. For example sinistea and dreepy spawn all day despite being ghost type, and umbreon only spawns at night despite not being ghost type. Assuming the pastebin I showed...