Trigger:
- Wind Slash
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Wind Slash
- Actions
- Set o = (Triggering unit)
- Set t = (Target unit of ability being cast)
- Set tl = (Position of t)
- If ((Level of Wind Slash for o) Equal to 1) then do (Set loops = 2) else do (Do nothing)
- If ((Level of Wind Slash for o) Equal to 2) then do (Set loops = 4) else do (Do nothing)
- If ((Level of Wind Slash for o) Equal to 3) then do (Set loops = 6) else do (Do nothing)
- Unit - Make o Invulnerable
- Animation - Change o's vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
- Selection - Remove o from selection
- Unit - Pause o
- Unit - Move o instantly to tl
- Unit - Unpause o
- Custom script: call RemoveLocation(udg_tl)
- Animation - Play o's attack animation
- Unit - Cause o to damage t, dealing (Random real number between 150.00 and 250.00) damage of attack type Hero and damage type Normal
- Special Effect - Create a special effect attached to the chest of o using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
- Special Effect - Destroy (Last created special effect)
- For each (Integer A) from 1 to loops, do (Actions)
- Loop - Actions
- Wait 0.30 game-time seconds
- Set o_current_loc = (Position of o)
- Set EG[1] = (Units within 600.00 of o_current_loc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of o)) Equal to True) and ((((Matching unit) is A flying
- Set EG[2] = (Random 1 units from EG[1])
- Custom script: call RemoveLocation(udg_o_current_loc)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in EG[1]) Greater than 0
- Then - Actions
- Unit Group - Pick every unit in EG[2] and do (Actions)
- Loop - Actions
- Set p = (Picked unit)
- Set pl = (Position of p)
- Selection - Remove o from selection
- Unit - Pause (Triggering unit)
- Unit - Move o instantly to pl
- Unit - Unpause (Triggering unit)
- Custom script: call RemoveLocation(udg_pl)
- Animation - Play o's attack animation
- Unit - Cause o to damage p, dealing (Random real number between 150.00 and 250.00) damage of attack type Hero and damage type Normal
- Special Effect - Create a special effect attached to the chest of o using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Loop - Actions
- Custom script: call DestroyGroup(udg_EG[1])
- Custom script: call DestroyGroup(udg_EG[2])
- Unit Group - Pick every unit in EG[2] and do (Actions)
- Else - Actions
- Custom script: call DestroyGroup(udg_EG[1])
- Custom script: call DestroyGroup(udg_EG[2])
- Selection - Add o to selection for (Owner of o)
- Animation - Change o's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Unit - Make o Vulnerable
- If - Conditions
- Loop - Actions
- Selection - Add o to selection for (Owner of o)
- Animation - Change o's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Unit - Make o Vulnerable
- Events
This is the spell I import from the spell section. At first, the spell was working like a charm and slash 3 unit at level 1, 5 at level 2 and 7 at level 3.
After I import several spell, this spell only slash the enemy unit twice. The rest of the spell was working and there is no same variable been use for 2 different spell. What could cause it?