- Joined
- Apr 3, 2012
- Messages
- 31
I'm attempting to create an autocast ability with a cooldown, that applies a buff to the next attack. To this end, I'm using Damage Engine to detect an attack with the buff, and remove the buff and apply bonus damage (this part works fine). For the base ability I'm using Frenzy, as Frenzy is a toggleable (autocast on/off) self-buff. Now, while it works with some fiddling (for some reason, Frenzy doesn't autocast even when enabled? but I solved it with some triggering), casting Frenzy causes the hero to play their Spell animation, which is undesirable, as it basically skips like 2 seconds and feels very clunky.
I thought about using Berserk instead, as Berserk is an ability which doesn't require an animation, however Berserk cannot be toggled to autocast. Orb effects (Searing Arrows etc.) might work, but don't go on cooldown if the unit is on Hold Position.
Basically, is there a way to create a toggleable autocast ability which doesn't cause an animation to trigger? I'm thinking something along the lines of checking if the ability is on cooldown (with a timer?) and on autocast when the unit attacks, and if it isn't, initiating the cooldown through triggers, and spawning a dummy to cast a buff on the unit. That would still play the animation if the spell is cast manually though, and also seems very convoluted.
Alternatively, I might just give up on the toggleable autocast, and just base it on Berserk, which works flawlessly except the no autocast-thing.
I thought about using Berserk instead, as Berserk is an ability which doesn't require an animation, however Berserk cannot be toggled to autocast. Orb effects (Searing Arrows etc.) might work, but don't go on cooldown if the unit is on Hold Position.
Basically, is there a way to create a toggleable autocast ability which doesn't cause an animation to trigger? I'm thinking something along the lines of checking if the ability is on cooldown (with a timer?) and on autocast when the unit attacks, and if it isn't, initiating the cooldown through triggers, and spawning a dummy to cast a buff on the unit. That would still play the animation if the spell is cast manually though, and also seems very convoluted.
Alternatively, I might just give up on the toggleable autocast, and just base it on Berserk, which works flawlessly except the no autocast-thing.
Last edited: