HalosNTariff
New Member
- Reaction score
- 13
Hi, I've made a trigger to give with an ability but it doesn't work fully:
It should freeze every unit with the frostwave buff (by reducing its movement speed to 0), wait 20 seconds and then unfreeze them, returning their movement speed to normal. It freezes them fine, however after the 20 seconds is up the buff disappears but the units remain immobile.
What have I messed up on?
Thanks in advance.
Code:
Frostwave buff
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Frostwavespire = Frostwave
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Frostwavespire) Equal to True)) and do (Actions)
Loop - Actions
Unit - Set (Picked unit) movement speed to 0.00
Wait 20.00 seconds
Unit - Set (Picked unit) movement speed to (Default movement speed of (Picked unit))
It should freeze every unit with the frostwave buff (by reducing its movement speed to 0), wait 20 seconds and then unfreeze them, returning their movement speed to normal. It freezes them fine, however after the 20 seconds is up the buff disappears but the units remain immobile.
What have I messed up on?
Thanks in advance.