- Unit - Set mana of (Triggering unit) to ManaRestorePercent%
Just make a spell based on a Mana-Pot and set "Is Hero Ability: True"
Ok, in this way, each level of the ability increases percent of mana restore by 5%.
- Trigger Name
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to <AbilityName>
- Actions
- Set ManaRestorePercent = (Real(((Level of <AbilityName> for (Triggering unit)) x 5)))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Mana of (Triggering unit)) Not equal to (Max mana of (Triggering unit))
- Then - Actions
- Unit - Set mana of (Triggering unit) to ManaRestorePercent%
- Else - Actions
So, level 1 = 5%, level 2 = 10%, level 3 = 15% and so on.
I don't have the World Editor open so it should be something like this..
Can't know for sure, sorry I'm in a library so can't open the World Editor.
- Active Critical
- Events
- Unit - A unit finishes casting an ability
- Conditions
- (Ability being cast) is equal to <Ability Name>
- Actions
- Unit - Make (Triggering unit) cause Damage to (Target unit of ability being cast) equal to (((Triggering Unit)'s Base Damage) x 2)
PS: It would be much better for users that search the forums to give a title related to the problem.
E.G. The current title should be - Ability Restoring Mana by % -
- Actually you already got your answer, so there was no need to do that.Thanks for that trigger!
I will create another thread for the mana restore!
I'm pretty sure no function exists that gives the base damage of a unit.
However, I would love to be wrong about this because that would be a very useful function.