- Joined
- May 15, 2009
- Messages
- 192
Here I am again, asking for help. This time around, I have tried to create a multi-leveled ability which adds Immolation to the target unit for a short while, then removing it. Since I did not want an immolation icon popping up on the abilities panel, I decided to use a Disabled Spellbook.
My problem is that, while the buff from the original spell goes away, the spellbook/immolation won't seem to be removed. The ability has two triggers.
Adding the Ability
My problem is that, while the buff from the original spell goes away, the spellbook/immolation won't seem to be removed. The ability has two triggers.
Adding the Ability
-
Lightning Shield
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Lightning Shield
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of (Ability being cast) for (Triggering unit)) Equal to 1
-
Then - Actions
- Unit - Add Lightning Shield Passive L1 (Disabled) to (Target unit of ability being cast)
- Countdown Timer - Start LightningShield_Timer as a One-shot timer that will expire in 10.00 seconds
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of (Ability being cast) for (Triggering unit)) Equal to 2
-
Then - Actions
- Unit - Add Lightning Shield Passive L2 (Disabled) to (Target unit of ability being cast)
- Countdown Timer - Start LightningShield_Timer as a One-shot timer that will expire in 13.00 seconds
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of (Ability being cast) for (Triggering unit)) Equal to 3
-
Then - Actions
- Unit - Add Lightning Shield Passive L3 (Disabled) to (Target unit of ability being cast)
- Countdown Timer - Start LightningShield_Timer as a One-shot timer that will expire in 16.00 seconds
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of (Ability being cast) for (Triggering unit)) Equal to 4
-
Then - Actions
- Unit - Add Lightning Shield Passive L4 (Disabled) to (Target unit of ability being cast)
- Countdown Timer - Start LightningShield_Timer as a One-shot timer that will expire in 19.00 seconds
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of (Ability being cast) for (Triggering unit)) Equal to 5
-
Then - Actions
- Unit - Add Lightning Shield Passive L5 (Disabled) to (Target unit of ability being cast)
- Countdown Timer - Start LightningShield_Timer as a One-shot timer that will expire in 22.00 seconds
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
LS Remove
-
Events
- Time - LightningShield_Timer expires
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to LightningShield_Group
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (((Picked unit) has buff Lightning Shield) Equal to True) or (((Picked unit) has buff Lightning Shield (Caster)) Equal to True)
-
Then - Actions
- Unit - Remove Lightning Shield Passive L1 (Disabled) from (Picked unit)
- Unit - Remove Lightning Shield Passive L2 (Disabled) from (Picked unit)
- Unit - Remove Lightning Shield Passive L3 (Disabled) from (Picked unit)
- Unit - Remove Lightning Shield Passive L4 (Disabled) from (Picked unit)
- Unit - Remove Lightning Shield Passive L5 (Disabled) from (Picked unit)
- Custom script: call DestroyGroup(udg_LightningShield_Group)
- Trigger - Turn off (This trigger)
-
Else - Actions
- Custom script: call DestroyGroup(udg_LightningShield_Group)
- Trigger - Turn off (This trigger)
-
If - Conditions
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Events