Kershbob
New Member
- Reaction score
- 30
Well it's easy if you use a unit variable.
Start Blizzard
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Blizzard
Actions
Set Ability_Blizzard_Caster = (Casting unit)
Trigger - Turn on Blizzard Drain <gen>
Stop Blizzard
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to Blizzard
Actions
Trigger - Turn off Blizzard Drain <gen>
Blizzard Drain
Events
Time - Every 0.20 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Mana of Ability_Blizzard_Caster) Greater than or equal to 5.00
Then - Actions
Unit - Set mana of Ability_Blizzard_Caster to ((Mana of Ability_Blizzard_Caster) - 5.00)
Else - Actions
Trigger - Turn off (This trigger)
Andrewgosu said:I tried pause and the unpause the unti after the mana is less than 10, but only with preplaced unit.(And it worked)
But it didt allow me to use the ability_blizzard_caster variable somehow instead the preplaced mage..