A political attack ad in a local mayor's race now faces a legal battle.