Depends on where Sarlecc insert the restore code (before or after the formula).
And like what Sarlecc said, can't do it before, or there will be a chance that you will end up with a dead castor before the restore happens.
So restore, and let the damage formula do the calculation and damage after that.
If you are doing something like take 30% hp from caster. It won't matter what the current hp is since you will be calculating based on max hp. But if you try to calculate it using % of current hp, then there will be a difference.
But i bet Sarlecc will want to know if you will be using a separate animation for restore, and another for the damage part. The damage part should trigger along with the skill damage, but you might want the restore part to have its own set of animation.
And like what Sarlecc said, can't do it before, or there will be a chance that you will end up with a dead castor before the restore happens.
So restore, and let the damage formula do the calculation and damage after that.
If you are doing something like take 30% hp from caster. It won't matter what the current hp is since you will be calculating based on max hp. But if you try to calculate it using % of current hp, then there will be a difference.
But i bet Sarlecc will want to know if you will be using a separate animation for restore, and another for the damage part. The damage part should trigger along with the skill damage, but you might want the restore part to have its own set of animation.