• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Detect unimmolation event due to lack of mana

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