Amy appears again in Seasons Two and Three as a Sunnydale High School student. Aware that Amy has inherited magical power through her mother and has become a practicing witch (after seeing her use magic to deceive a teacher into thinking she has submitted her homework when in fact she has not), Xander Harris asks her to cast a spell to make Cordelia fall in love with him in the episode "Bewitched, Bothered and Bewildered" with humorous and potentially disastrous results. In the episode "Gingerbread", the town goes on a demon-induced, anti-witchcraft spree. To escape being burned at the stake, Amy uses a transformation spell to turn herself into a rat. Unfortunately, once she is in rat form, she cannot recite the spell to transform back (although some sources, for example 'The Buffy Monster Book', report that Amy's actual intention was to turn the townsfolk into rats and the spell ended up backfiring). Willow captures her and keeps her in a cage while she researches how to turn her back into a human being. Only Buffy and Oz are aware that Willow's new pet is a transformed human, with Willow referring to her as "Amy-Rat".