Deal the damage via trigger, use the "Hero - Hero Attribute" function in the damage amount argument. You may have to convert the integer hero attribute to real ("Conversion - Convert Integer To Real" function).
If you are curious about "Charging", define it properly.