Forum:Sacrificing during declare

A friend of mine has taken to using traps like Eradicator Epidemic Virus to sacrifice their creature when I declare it as a target. I know this is completely feasible, but what actually happens to the attack?