• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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?
 
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
 
Status
Not open for further replies.
Back
Top