i made ability that has a chance on attack to increase attack speed...
but i found little bug with it created dummy cast spell on random target...
dummy - dummy that cast skill
Shm - hero that learned ability
ability has 16lvl
chance is 5-35%
attack speed increase by 30%
ability learn
but i found little bug with it created dummy cast spell on random target...
dummy - dummy that cast skill
Shm - hero that learned ability
ability has 16lvl
chance is 5-35%
attack speed increase by 30%
ability learn
-
aspd skill learn
-
Event
-

Unit - A unit learns skill
-
-
Conditions
-

(Learned hero skill) equal to aspd
-

(Unit-type of (Learning hero)) equal to Shm
-
-
Actions
-

Set aspdhero = (Learning hero)
-

Set aspdchance = (3+(2x(Real(Level of aspd for aspdhero))))
-
-
aspd skill cast
-
Events
-

Unit - A unit is attacked
-
-
Conditions
-

(Unit-type of (Attacking unit)) equal to Shm
-
-
Actions
-

If (All conditions are True) then do (Then actions) else do (Else actions)
-


If - conditions
-



(Random integer number between 1 and 100) less than or equal to (Integer(aspdchance))
-
-


Then - actions
-



Unit - create 1 dummy for player 11(Dark green) at (Position of aspdhero) facing (Position of aspdhero)
-



Set dummyaspd = (Last created unit)
-



Unit - add aspdskill to dummyaspd
-



Unit - order dummyaspd to Orc shaman - Bloodlust aspdhero
-



Wait 0.01 seconds
-



Unit - remove dummyaspd from the game
-
-


Else - actions
-



Do nothing
-
-
-
