He'd to do either because, eventually, Gandalf had to come across The Black Captain, in one way or another and as described in the novel, before Gandalf, the Lord of the Nazgūl lifted high his sword and fire sprang down the blade.
Peter Jackson simply prolonged their meeting as opposed to their confrontation in the novel.
|