• 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] Making a unit immune to only 1 certain spell?

Status
Not open for further replies.
Level 6
Joined
Apr 23, 2009
Messages
94
I have a dummy casting "Howl of Terror" on units in range every 3 seconds.
The spell itself doesn't do anything, but it puts a "Scared" buff on those units which i have a few triggers that detect units with the "Scared" and orders them to flee and changes the ownership of that unit until the buff is off.
My question is, I have 3 types of Heroes that are should be immune to being "Scared", but if i give them Magic Immunity, it makes them immune to A Lot of stuff they shouldn't be immune to.. Is there a way to make them immune to just that spell or just the "Scared" buff?
 
Level 12
Joined
Mar 26, 2005
Messages
790
I would make it like this:

Let the dummy cast howl of terror_1, then pick every unit within area which has that buff, and is NOT unit type of hero1 or hero2 or hero 3 and make them flee



just give there condition that checks unit type of buffed unit
 
Level 4
Joined
May 27, 2009
Messages
44
Try this:

Howl111 - Affects non-ancient units

If you want the unit not to be affect by it, set its classification to Ancient
That way it will not include the effect.
No Triggers done, just variables.
 
Status
Not open for further replies.
Top