• 🏆 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] Detect unimmolation event due to lack of mana

Status
Not open for further replies.
Level 16
Joined
Apr 4, 2011
Messages
995
I am currently using this trigger to fire events for a spell of mine based off of immolation to make a switch on/off passive ability which drains mana. The spell is not firing the unimmolation events when the unit turns off the spell due to lack of mana, but it does fire correctly when the player turns the spell off manually. Are there any easy workarounds or fixes?

  • Unholy Eclipse On Off
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Level of Unholy Eclipse for (Triggering unit)) Greater than 0
      • Or - Any (Conditions) are true
        • Conditions
          • (Issued order) Equal to (Order(immolation))
          • (Issued order) Equal to (Order(unimmolation))
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order(immolation))
        • Then - Actions
        • Else - Actions
 
Level 9
Joined
Apr 23, 2011
Messages
527
A workaround would be adding a specific unit event through an action:
  • Trigger - Add to <trigger> the event Unitvariable's mana becomes Less than 1.0
when the unit casts the ability in another trigger and placing your actions there.

You would have to remove the specific event when the unit dies/won't use it anymore unless it's a hero or something that can constantly use immolation, stored in a variable, where the event will always be used.
 
Status
Not open for further replies.
Top