As name suggests dmg should be dealt after casting spell, not before

dota1:


dota2: