Lita then hit Foley in between the legs with a barbed wire bat , and lit the table which then allowed Edge to hit a Spear to Foley through the ring ropes through the flaming table on the outside , and pinned Foley to get the win . Lita then hit Foley in between the legs with a barbed wire bat and lit the table which then allowed Edge to perform a spear on Foley through the ring ropes through the flaming table on the outside . He then pinned Foley for the victory .