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

EXORCISM spell

Status
Not open for further replies.
Level 4
Joined
Apr 19, 2005
Messages
36
I am having quote some trouble figuring out how to do an exorcism spell, such as when the hero casts it all undead in 500 range of the hero take a certain amount of damage. I am not sure how to do this with triggers and if someone can help me with it that would be awesome. Also to note there is not "Undead" category for units allowed to be targeted.
Also as another note, the spell is a unit spell, not a hero spell. So only 1 level.
 
Level 10
Joined
Aug 8, 2004
Messages
562
Code:
EVENT-
unit starts the effect of an ability
CONDITION-
ability being cast = *YourSpell*
ACTIONS-
Pick every unit within 500 of triggering unit matching Matching Unit is owned by an enemy of triggereing unit and Unit class is undead and do Set life of matching unit = life of matching unit - *HOW MUCH DAMAGE YOU WANT*

and yes, the is just one action.
 
Status
Not open for further replies.
Top