I am wondering what a common way for actually dealing damage to different units is. Imagine a game like starcraft for example, should damage be done like this:
1) zealot attacks zergling, deal damage to zergling
2) zealot attacks zergling, create an attack effect on zergling. When this effect collides with the zergling deal damage to said zergling.
The advantage of 2 is for projectiles (like a dragoon attack) will deal damage when the attack collides with the target unit.
What are your thoughts about this in general? Are there other ways of doing this?