K im making item with ability to increase movement speed to maximum when get hit and when attacked, i am using unholy aura as dummy ability and to increase movement speed I increase level of ability but i wont decrease after time. Any ideas to fix this?
-
Boots of Haste
-
Events
- Unit - A unit Is attacked
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Attacked unit) has buff Boots of Haste ) Equal to True
- (Random integer number between 1 and 100) Less than or equal to 20
-
Then - Actions
- Set BohAttacked = (Attacked unit)
- Unit - Set level of Item random Speed increase for BohAttacked to ((Level of Item random Speed increase for BohAttacked) + 1)
- Special Effect - Create a special effect attached to the origin of BohAttacked using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Wait 2.50 game-time seconds
- Unit - Set level of Item random Speed increase for BohAttacked to ((Level of Item random Speed increase for BohAttacked) - 1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Attacking unit) has buff Boots of Haste ) Equal to True
- (Random integer number between 1 and 100) Less than or equal to 10
-
Then - Actions
- Set BohAttacker = (Attacking unit)
- Unit - Set level of Item random Speed increase for BohAttacker to ((Level of Item random Speed increase for BohAttacker) + 1)
- Special Effect - Create a special effect attached to the origin of (Attacking unit) using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Wait 2.50 game-time seconds
- Unit - Set level of Item random Speed increase for BohAttacker to ((Level of Item random Speed increase for BohAttacker) - 1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events