For that technique, don't right click directly on an opponent, or you will turn visible again and be attacked. Just stand near them and right click somewhere else.