I don't know whether its a bug or intended but I used to be able to cast magic unlock whilst invisible. The current version does not allow the manoeuvre..