• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Autocast Problemz

Status
Not open for further replies.
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)
 
Status
Not open for further replies.
Top