While is attacker in attacking animation, target may be already out of range what sometimes lead to attacker dealing damage to targets that are no longer in their attack range.
Steps to reproduce:
attacker: melee unit
target: fleeing unit
notice fleeing unit receives damage while is clearly out of range of attacker