- Joined
- Aug 16, 2013
- Messages
- 6
Hello everyone,
I've created an ability, which temporary grants AS and Lifesteal, which I have implemented as follows:
Hint of the Ability:
"When activating Sharp Blade you gain +(Level)*10 AD and (Level)% Bonus Lifesteal. This Bonus is doubled, when you are below 50%. And 1% Attackspeed for each 1% missing life."
The ability "Sharp Blade" is based on "Battleroar"
The ability "Adaptive Lifesteal Boost 1%"is based on the item ability lifesteal and has 100 levels having 0.01 - 1.00 lifesteal.
The ability "Adaptive (AS) Boost 1%" is based on the item ability attackspeed increment and also has 100 levels ranging from 0.01 - 1.00 boost.
My problem is, that in game the ability only works sometimes. Yes "sometimes". There is about a 70% ratio that the AS buff works and about 70% ratio that the Lifesteal part works. And they are independent, so sometimes it occurs that both work, only one of them works or neither of them works.
Do you see any bugs with the given trigger? Or do you have any ideas, what could be the cause? The cooldown of the ability is about twice its duration so the use of wait shouldn't be the cause of this IMO. If you need any more information, I can provide it of course.
Thanks in advance!
Greets Knittel
EDIT: Changed [ code ] to [ trigger ]
I've created an ability, which temporary grants AS and Lifesteal, which I have implemented as follows:
Hint of the Ability:
"When activating Sharp Blade you gain +(Level)*10 AD and (Level)% Bonus Lifesteal. This Bonus is doubled, when you are below 50%. And 1% Attackspeed for each 1% missing life."
-
Sharpen Blade
-
Events
- Unit - A unit starts the effects of an ability
-
Conditions
- (Ability being cast) Gleich Sharp Blade
-
Actions
- Unit- Add SharpenBlade Spellbook (neu) to (Triggering unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
- (Percentage life of (Triggering unit)) Kleiner gleich 50.00
-
'THEN'-Actions
- Unit - Set level of Adaptive Lifesteal Boost 1% for (Triggering unit) to ((Level of Sharp Blade for (Triggering unit)) x 2)
-
'ELSE'-Actions
- Unit - Set level of Adaptive Lifesteal Boost 1% for (Triggering unit) to (Level of Sharp Blade for (Triggering unit))
-
'IF'-Conditions
- Unit- Set level of Adaptive (AS) Boost 1% for (Triggering unit) to (Integer((100.00 - (Percentage life of (Triggering unit)))))
- Wait 10.00 game-time seconds
- Unit- Remove SharpenBlade Spellbook (neu) from (Triggering unit)
-
Events
The ability "Sharp Blade" is based on "Battleroar"
The ability "Adaptive Lifesteal Boost 1%"is based on the item ability lifesteal and has 100 levels having 0.01 - 1.00 lifesteal.
The ability "Adaptive (AS) Boost 1%" is based on the item ability attackspeed increment and also has 100 levels ranging from 0.01 - 1.00 boost.
My problem is, that in game the ability only works sometimes. Yes "sometimes". There is about a 70% ratio that the AS buff works and about 70% ratio that the Lifesteal part works. And they are independent, so sometimes it occurs that both work, only one of them works or neither of them works.
Do you see any bugs with the given trigger? Or do you have any ideas, what could be the cause? The cooldown of the ability is about twice its duration so the use of wait shouldn't be the cause of this IMO. If you need any more information, I can provide it of course.
Thanks in advance!
Greets Knittel
EDIT: Changed [ code ] to [ trigger ]
Last edited: