• 🏆 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!

How to make a unit to cast a spell when beign attacked?

Status
Not open for further replies.
Level 6
Joined
Aug 31, 2018
Messages
157
I am making a boss which use mana shield but theres something broken and it deactive mana shield.. So i need a trigger where when the boss beign attacked to cast mana shield which cant be deactivated.

Also how can i make a trigger where the Boss (a unit) cast a spell at low hp? I use the picture below but it doesnt work.
 

Attachments

  • Rock 3.png
    Rock 3.png
    11.2 KB · Views: 38
Level 28
Joined
Feb 18, 2014
Messages
3,580
I am making a boss which use mana shield but theres something broken and it deactive mana shield.. So i need a trigger where when the boss beign attacked to cast mana shield which cant be deactivated.
  • Trigger
    • Events
      • Unit - A unit is Attacked
    • Conditions
      • (Triggering unit) Equal to YourUnit
    • Actions
      • Unit - Order YourUnit to Neutral Naga Sea Witch - Activate Mana Shield
Also how can i make a trigger where the Boss (a unit) cast a spell at low hp? I use the picture below but it doesnt work.
Someone has already answered your question.
 
Status
Not open for further replies.
Top