You cannot use prayer while fighting this monster. When you get it down to low life points, you will throw the severed leg at it, and kill it while it is distracted. You will need to change back into the ghostly robes to throw the leg.