- Joined
- Sep 14, 2009
- Messages
- 284
Not really sure what to name the thread, anyways.
I'm making a custom spell which deals calculated damage (triggered). That part is easy.
Now the hard part. All units in this map has 100 mana. I want the spells effect to use the current mana of the casting unit as percentage as to how much damage the spell will deal.
For example, if the unit has 50 mana, the spell will deal 50% damage etc etc...
So my question is what can I use as formula for this spell?
The original formula is something like this:
Cause Unit to deal (X+(1.5*Intelligence of Hero)).
I want it to be like this:
Cause Unit to deal (X+(1.5*Intelligence of Hero)) x (Current mana of Unit as percentage)
I'm making a custom spell which deals calculated damage (triggered). That part is easy.
Now the hard part. All units in this map has 100 mana. I want the spells effect to use the current mana of the casting unit as percentage as to how much damage the spell will deal.
For example, if the unit has 50 mana, the spell will deal 50% damage etc etc...
So my question is what can I use as formula for this spell?
The original formula is something like this:
Cause Unit to deal (X+(1.5*Intelligence of Hero)).
I want it to be like this:
Cause Unit to deal (X+(1.5*Intelligence of Hero)) x (Current mana of Unit as percentage)