- Joined
- Sep 1, 2007
- Messages
- 255
I can't find any events, conditions, or actions that detects if an autocast ability is on or not. Anyways, to the point, I made an ability based off Black Arrows that deals damage based on your Agility if you either cast it or leave it on. If it's not casted and is off, it doesn't do damage. Here's the trigger, don't mind the custom script, that's just some function I made:
-
Dark Impulse
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Dark Impulse
-
Actions
- Wait until (((Target unit of ability being cast) has buff Dark Impulse ) Equal to True), checking every 0.10 seconds
- Custom script: call DamageBasedTrait(GetTriggerUnit(), GetSpellTargetUnit(), GetHeroAgi(GetTriggerUnit(), true), 0.16)
-
Events