X-maul
AKA: Demtrod
- Reaction score
- 201
I want to create a spell that drains up to 50 energy from a target enemy unit, and for each energy drained deal 2 damage. So if the target only have 30 energy it will deal 60 damage.
Also, I would like to make it deal a minimum of 20 damage (if the target only have 2 energy, it drain the energy and deal 20 damage (instead of the 4 damage based on the drain))
All the energy drained should be transfered to the caster.
How is this done? (This is basically to learn how it's done, I do not actually need this ability right away)
Also, I would like to make it deal a minimum of 20 damage (if the target only have 2 energy, it drain the energy and deal 20 damage (instead of the 4 damage based on the drain))
All the energy drained should be transfered to the caster.
How is this done? (This is basically to learn how it's done, I do not actually need this ability right away)