Any magical effect a starship can conjure is typically granted by a magic conduit battle station. Magical effects created by NPC starships usually shouldn’t manifest as player starship spells but should instead be designed as custom magical actions in the same way a creature’s abilities are created.