no because I have no idea why doing a compare to see if a unit is friendly or not before applying damage to it has anything to do with movement.
perhaps the game has more than 'damage' applied when a unit is damaged in a the function controlling it.
sorry I have no suggestions..
The game keeps track of ranged attacks and movement with them to determine where the attack will land. Normally this is useless information but it is essential for certain attacks such as the Glaive Worm attack from Mutalisks (this attack is supposed to bounce off the attacked unit onto a nearby unit for multiple attacks for bonus damage). I'm guessing they kept this check universal for all attacks (melee, splash, spell, etc).
[Edited by Neo7, 6/19/2013 8:04:07 AM]