As Voldemort's Horcrux, Nagini was almost always by Voldemort's side, under Voldemort protection.
For just a few hours each week, Voldemort allowed Nagini to leave Avery Manor to hunt in the nearby primeval forest, giving her a small amount of free time—a testament to Voldemort's favoritism towards Nagini.
After all, even the Death Eater at the Avery Manor were not allowed to leave before Voldemort led them to attack Hogwarts Castle Avery Manor. They were forced to practice how to plunder the Star Power in preparation for the war.
Fortunately, apart from Hufflepuff's Cup, Linley and Irina destroyed Voldemort's other Horcrux in secret, and Voldemort was unaware that all of his Horcrux, except for Nagini and Harry Potter (whom even he himself was unaware of), had been destroyed.
Voldemort naively believed that the only Horcrux he had discovered was Hufflepuff's Cup.
Otherwise, Voldemort would never have allowed Nagini to leave Avery Manor, thus giving Linley the opportunity to take advantage of the situation.
A week after Harry received his memories from Slughorn, Linley captured Nagini in a primeval forest 15 kilometers from the Avery Manor, and after temporarily restraining her with a full-body Apparition Full Body Bind, he apparated her to the Forbidden Forest at Hogwarts.
In fact, if Linley were willing to conduct a thorough search, he might be able to discover Nagini's location through him and then trace the coordinates of the Avery Manor, since Avery Manor was not protected by the Fidelius Charm.
But that would take far too long, and besides, he couldn't really kill Voldemort until all the Horcrux were destroyed, so there was absolutely no need for him to do so.
"Irina, go and call Neville over here."
Linley landed on his feet, cast several Full Body Bind on Nagini on the ground, and then spoke to Irina, who had been waiting for a long time.
Irina nodded slightly and tossed over a sword, the Gryffindor Sword.
Ever since Linley and Irina pulled the Gryffindor Sword the Sorting Hat when they killed the Basilisk, it has been kept in the Headmaster's office.
It wasn't until Linley discovered Nagini's whereabouts and prepared to kidnap him that Irina went to the Headmaster's office and borrowed the Gryffindor Sword from Dumbledore so that Neville could use it when he completed his assessment.
Linley took the Gryffindor Sword, glanced at Nagini lying motionless on the ground, and with a wave of his Wand, an Illusion Formation was created with Nagini's location as the center.
Of course, this is not a complete Illusion Formation. It does not grant the person entering the array a complete illusion, but rather changes the person's perception, just like twisting the Nagini the great serpent in front of them into the shape of the giant snake that originally existed in the Forbidden Forest.
This is also to make Nagini's appearance in Neville's eyes more reasonable.
Linley flipped his left hand, and the Alchemy Detector appeared in his hand. Under the scanning of the Alchemy Detector, the data of Gryffindor Sword and Nagini were recorded into the Illusion Formation.
Once Neville enters the Illusion Formation, Nagini in his eyes will transform into another venomous serpent, and the Gryffindor Sword in his eyes will become the exact same silver sword as the one he experienced in the Illusion Trial.
About fifteen minutes later, Neville, led by Irina, walked over somewhat uneasily.
"Come here, Neville," Linley said calmly, beckoning Neville to speak. "I suppose Irina has already told you what happened?"
Neville nodded somewhat nervously and said, "Yes, Irina said you plan to choose me as the successor to the DA Army, but... can I really do it?"
Linley smiled and said, "Believe in yourself. Of course you can do it. Come forward, Neville. Just like your Illusion Trial over the past six months, use your silver sword to slay that giant serpent. That will be your test."
Neville looked toward the center of the Illusion Formation, at the immobile giant serpent.
Neville wiped the sweat from his palms, nodded vigorously, and stepped into the Illusion Formation.
Neville's mind was filled with what Linley and Irina had said about the test to make him the successor of the DA army, but he didn't notice that even though he hadn't stepped into the Illusion Formation yet, he could still see the giant snake outside the illusion.
The moment Neville stepped into the Illusion Formation, everything before his eyes changed.
Under the altered perceptions of the Illusion Formation and the Alchemy Detector, Neville felt as if he were in a giant arena, with a huge, patterned serpent coiled not far from him.
Outside the Illusion Formation, Linley threw the Gryffindor Sword in his hand, causing it to embed itself in the soil at Neville's feet.
Within the Illusion Formation, Neville only saw a silver sword appear out of thin air and planted at his feet. He pulled out the silver sword, and his gaze toward the giant serpent in the distance was filled with fighting spirit.
"Finite Incantatem!"
Outside the Illusion Formation, Linley gently shook his Wand, releasing Nagini from the Full Body Bind.
Once the restraints were released, Nagini immediately revealed its ferocity, its thick, long snake body suddenly sprang out, heading straight for Neville's face.
Neville instinctively dodged to the side, avoiding Nagini's ricochet while simultaneously slashing his sword at Nagini's vital point.
The threat of death made Nagini tense up. It twisted its body in mid-air, trying to dodge Neville's Gryffindor Sword, but Neville's Gryffindor Sword followed Nagini's body and kept changing the angle of its strike!
In the end, the Gryffindor Sword grazed Nagini's vital spot. Although it did not hit Nagini directly, it left a gash nearly a meter long on its serpentine body!
Crimson blood splattered out, staining the soil of the Forbidden Forest red. The sudden pain made Nagini roar in agony, his eyes filled with even more ferocity.
Nagini's fear of Neville's Gryffindor Sword kept him from getting close to Neville for a while.
But this does not mean that Nagini had no other means of attack.
It opened its mouth wide, and a glob of foul-smelling snake venom spewed out, heading straight for Neville's face.
Under the altered perception of the Illusion Formation, the venom transformed into a terrifying dark purple liquid in Neville's vision. This caused Neville to roll two or three times to dodge the liquid before staring in shock at Nagini in the distance.
Nagini spat out venom several times, but Neville dodged them all. Seeing the figure wielding the Gryffindor Sword and closing in on him, Nagini had no choice but to lunge and bite at Neville.