- Joined
- Jun 27, 2010
- Messages
- 2,707
Hello, I made a spell that lifts the target up in the air and brings it back down after short time. I have some problems with it, 1. after the spell is done the target appears to became flying unit, because when i try the spell again on it it says it can only target ground units. 2. in the spell it is allowed only to target enemy, organic, ground units,not self, but I can target my allies. what should I change to fix this? 3. after the spell is done something goes wrong with the targeting, when I mouse-enter on the cast unit it does not show hp bar,however I can click it.
-
Gravity Lapse
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Gravity Lapse
-
Actions
- Unit Group - Add (Target unit of ability being cast) to Gravity_Lapse_Group
- Unit - Add Crow Form to (Target unit of ability being cast)
- Animation - Change (Target unit of ability being cast) flying height to 400.00 at 600.00
- Custom script: call UnitAddAbility(GetSpellTargetUnit(), 'Aloc')
- Unit - Set (Target unit of ability being cast) acquisition range to 0.00
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Gravity Lapse for (Casting unit)) Equal to 1
-
Then - Actions
- Countdown Timer - Start Gravity_Lapse_Timer as a One-shot timer that will expire in 4.00 seconds
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Gravity Lapse for (Casting unit)) Equal to 2
-
Then - Actions
- Countdown Timer - Start Gravity_Lapse_Timer as a One-shot timer that will expire in 5.00 seconds
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Gravity Lapse for (Casting unit)) Equal to 3
-
Then - Actions
- Countdown Timer - Start Gravity_Lapse_Timer as a One-shot timer that will expire in 6.00 seconds
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Gravity Lapse for (Casting unit)) Equal to 4
-
Then - Actions
- Countdown Timer - Start Gravity_Lapse_Timer as a One-shot timer that will expire in 7.00 seconds
- Else - Actions
-
If - Conditions
-
Events
-
Timer GL
-
Events
- Time - Gravity_Lapse_Timer expires
- Conditions
-
Actions
-
Unit Group - Pick every unit in Gravity_Lapse_Group and do (Actions)
-
Loop - Actions
- Animation - Change (Picked unit) flying height to 0.00 at 600.00
- Unit - Hide (Picked unit)
- Unit - Remove Crow Form from (Picked unit)
- Custom script: call UnitRemoveAbility(GetEnumUnit(), 'Aloc' )
- Unit - Unhide (Picked unit)
- Selection - Select (Picked unit) for (Owner of (Picked unit))
- Unit - Set (Picked unit) acquisition range to (Default acquisition range of (Picked unit))
- Unit Group - Remove (Picked unit) from Gravity_Lapse_Group
-
Loop - Actions
-
Unit Group - Pick every unit in Gravity_Lapse_Group and do (Actions)
-
Events