It's actually the passive voice but without further context I can't be certain 'who or what' avoided demotion. It's also not possible to tell if this is conditional or not without more context either. If it were conditional though, the 'was' should be 'were'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.