• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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