Hi,
I want to make a spell that gives the target unit immolation for a set duration. Its basically lightning shield, but I cant use that because it harms friendly units. What I have so far adds the ability to the target unit, and then removes the ability after a timer expires. My problem is if I cast it on a unit, wait 10 secs and cast it on a second unit, when that first timer expires both units lose the ability. I want it to be an independent timer for each unit (MUI?). Here is what I have so far:
Thanks
I want to make a spell that gives the target unit immolation for a set duration. Its basically lightning shield, but I cant use that because it harms friendly units. What I have so far adds the ability to the target unit, and then removes the ability after a timer expires. My problem is if I cast it on a unit, wait 10 secs and cast it on a second unit, when that first timer expires both units lose the ability. I want it to be an independent timer for each unit (MUI?). Here is what I have so far:
-
Phoenix Immolation
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Phoenix Immolation
-
Actions
- Set TempReal = 20.00
- Countdown Timer - Start Timers[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in TempReal seconds
- Unit - Add Immolation to (Target unit of ability being cast)
-
Events
-
Phoenix Immolation Timer
-
Events
- Time - Timers[1] expires
- Time - Timers[2] expires
- Time - Timers[3] expires
- Time - Timers[4] expires
- Time - Timers[5] expires
- Time - Timers[6] expires
- Time - Timers[8] expires
- Time - Timers[9] expires
- Time - Timers[10] expires
- Time - Timers[11] expires
- Time - Timers[12] expires
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Permanent Immolation (Neutral Hostile 2)) Equal to True
-
Then - Actions
- Unit - Remove Immolation from (Picked unit)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Events
Thanks