Link the Get Distance To pin to Damage Causer instead of Instigated By. However, I strongly urge you to NOT implement this check here. The range check should be on Damage Causer. Check the range there, and apply damage only when in range.
Doing so will allow you to easily change melee range weapons (dagger is shorter than a lance) and allow you to implement other weapons later (bows, guns, etc)