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

[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,198
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