• 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.

[General] Unit Group must not filter invulnerable units.

Status
Not open for further replies.
Level 20
Joined
Aug 13, 2013
Messages
1,696
Hi, I'm making a Guardian Angel spell and it will makes the ally units invulnerable in the global range for 4 seconds. But I want it to make it filter ONLY vulnerable units not the already invulnerable because it will trigger to vulnerable. So is there a If Conditions or functions about it?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
You need to keep track of the units that you made invulnerable. Add them to a group for the duration of the ability. When the ability ends you only make the units in the group vulnerable.

You might need to also add a check for "divine shield" so that units using divine shield are not made vulnerable.

Alternativly if you do not mind the caster having to channel the ability you can base it off a modified version of Big Bad Voodoo (ultimate ability of Troll Headhunter). Give it a duration of 4 seconds and a range of global.
 
Status
Not open for further replies.
Top