i made a spell schokwave like. it has 3 lines and 3 raws. the problem is that the spell cast only first line with 3 raws and then it stops. Pls help me
-
Events
- unit - A unit Starts the effect of an abillity
-
Conditions
- (Ability being cast) equal to The Flow of Time
-
Actions
- Set Triggeringunit[1] = (Triggerin unit)
- Wait 0.10 game-time seconds
- Set Wave_Points[((PLayer number of (Owner of Triggering[1]))] = (Position of TriggeringUnit [1]
- Set Wave_Angls[((Plyer number of (Owner of TriggeringUnit[1]))] = (Facing of TriggeringUnit[1])
-
For each (Integer A) from 1 to 7, do (Actions)
-
Loop - Actions
- Special Effect - Destroy Effect1[((Player number of (Owner of TriggeringUnit[1]))
- Special Effect - Destroy Effect2[((Player number of (Owner of TriggeringUnit[1])
- Special Effect - Destroy Effect3[((Player number of (Owner of TriggeringUnit[1]))
- Set Wave_Points[(Player number of (Owner of TriggeringUnit[1]))] = (Wave_Points[((Player number of (Owner of TriggeringUnit[1]))] offset by 150.00 towards Wave_Angls[((Player number of(Owner of TriggeringUnit[1]))] degrees)
- Special Effect - Create a special effect at Wave_Points[((Player number of (Owner of TriggeringUnit[1]))] using Abilities \Spells\Human\MassTeleport\MassTeleportTarget.mdl
- Set Effect1[((PLayer number of TrggeringUnit[1]))] = (Last created special effect)
- Special Effect - Create a special effect at (Wave_Points[((Player number of (Owner of TriggeringUnit[1]))] offset by 100.00 towards (Wave_Angls[((Player number of (Owner of TriggeringUnit[1]))] + 90.00) degress) using Abilities \Spells\Human\MassTeleport\MassTeleportTarget.mdl
- Set Effect2[((Player number of (Owner of TriggeringUnit[1]))] = (Last created special effecft)
- Special Effect - CReate a special effect at (Wave_Points[((PLayer nuzmber of (Owner of TRiggeringUnit[1]))] offset by 100.00 towards (Wave_Angls[((Player number of (Owner of TriggeringUnit[1]))] + 270.00) degrees) using abilities \Spells\Human\MassTeleport\MassTeleportTarget.mdl
- Set Effect3[((Plyer number of (Owner of riggeringUnit[1]))] = (Last crerated special effect)
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 250.00 of Wave_Points[((Player number of (Owner of TriggeringUnit[1] matching (((Matching unit) belongsm to an enemy of (Owner of TriggeringUnit[1] equal to True)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If- Conditions
- ((Picked unit) has buff Time Flow ) Equal to True
-
Then - Actions
- Do nothing
-
Else - Actions
- If (((Picked unit) is dead) equal to True) then do (Skip remaining actions) else do (Do nothing)
- If (((Picked unit) is Mechanical) equal to True) then do (Skip remaining actions) else do (Do nothing)
-
If- Conditions
- Unit - Create 1 Wave Caster for (Owner of (TriggeringUnit[1]) at Wave_Points[((Player number of (Owner of TriggeringUnit[1])))] facing Default building facing (270.0) degrees
- Set LastCreatedUnit[1] = (Last created unit)
- Unit - Add a 2.00 seconds Generic expiration timer to LastCreatedUnit[1]
- Unit - Add Time Flow Effect to LastCreatedUnit[1]
- Unit - Order LastCreatedUnit[1] to Orc Shadow Hunter - Hex (Picked unit)
- Unit - Create 1 Wave Caster for (Owner of TriggeringUnit[1]) at Wave_Points[((Player number of (Owner of TriggeringUnit[1])))] facing Default buzilding facin (270.0) degrees
- Set LastCreatedUnit[1] 0 (Last created unit)
- Unit - Add a 2.00 second Generic expiration timer to LastCreatedUnit[1]
- If ((Level of The Flow of the Time for TriggeringUnit[1]) equal to 1) then do (Unit - Add Flow of Time Damage (Level 1) to LastCreatedsUnit[1]) else do (Do nothing)
- If ((Level of The Flow of the Time for TriggeringUnit[1]) equal to 2) then do (Unit - Add Flow of Time Damage (Level 2) to LastCreatedsUnit[1]) else do (Do nothing)
- If ((Level of The Flow of the Time for TriggeringUnit[1]) equal to 3) then do (Unit - Add Flow of Time Damage (Level 3) to LastCreatedsUnit[1]) else do (Do nothing)
- If ((Level of The Flow of the Time for TriggeringUnit[1]) equal to 4) then do (Unit - Add Flow of Time Damage (Level 4) to LastCreatedsUnit[1]) else do (Do nothing)
- Unit - Order (Last created unit) to Undead Lich - Frost Nova (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Wait 0.40 game-time seconds
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Wave_Points[GetConvertedPlayerId(GetOwningPlyer(Get TriggerUnit()))])
- Wait 0.40 game-time seconds
- Special Effect - Destroy Effect1[((Player number of (Owner of TriggeringUnit[1]))]
- Special Effect - Destroy Effect2[((Player number of (Owner of TriggeringUnit[1]))]
- Special Effect - Destroy Effect3[((Player number of (Owner of TriggeringUnit[1]))]