Hi all,
so i was playing my map and i saw that one skill isn't working properly. skill works like this: Unit is attacked, attacker have 30% chance to increase all of his stats by 1 for 20 seconds, it adds stats but it sometimes subtracks too much of stats. Can someone help me with this?
Can someone tell me whats wrong and/or can tell me how to fix this.
so i was playing my map and i saw that one skill isn't working properly. skill works like this: Unit is attacked, attacker have 30% chance to increase all of his stats by 1 for 20 seconds, it adds stats but it sometimes subtracks too much of stats. Can someone help me with this?
-
Avatar aura
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
((Attacking unit) has buff Avatar Aura ) Equal to True
-
((Attacking unit) is an illusion) Equal to False
-
-
-
-
Actions
-
Set AaAttacker = (Attacking unit)
-
Set AaChanse = (Random integer number between 1 and 100)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(AaAttacker is A Hero) Equal to True
-
AaChanse Less than or equal to 30
-
-
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the origin of AaAttacker using Abilities\Spells\Human\Avatar\AvatarCaster.mdl
-
Set AaSpecialEffect = (Last created special effect)
-
Hero - Modify Strength of AaAttacker: Add 1
-
Hero - Modify Agility of AaAttacker: Add 1
-
Hero - Modify Intelligence of AaAttacker: Add 1
-
Special Effect - Destroy AaSpecialEffect
-
Wait 20.00 seconds
-
Hero - Modify Strength of AaAttacker: Subtract 1
-
Hero - Modify Agility of AaAttacker: Subtract 1
-
Hero - Modify Intelligence of AaAttacker: Subtract 1
-
-
Else - Actions
-
Do nothing
-
-
-
-