if there is only 1 unit that you need this for, you could make the unit's attack actually a dummy unit and order it to the side or whereever. but that doesnt even require jass.
Thanx, but I'm trying to make an ability that deflects attack somewhere else and that would be hard in a map that had a lot of different types of creeps in it.