Have it set to 1500 In gameplay constants
When you want it to be 1000.
Check when a unit dies pick every hero around it in a 1500 range and check if the distance between the unit that died and the hero is less than or equal to 1000 if so do nothing if it is greater than 1000 calculate the xp the hero just recieved and remove it.