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

Magic Immunity Arua?

Status
Not open for further replies.
Level 5
Joined
Sep 1, 2010
Messages
168
Check every xyz seconds of the game if a unit has the aura buff. if so, add magic immunity item ability to the unit and add it to a unit group.
this group should be excluded from the previous check.
Now a 2nd trigger detects every xyz seconds of the game if a unit has that buff not anymore. if so, remove the magic imunity ability from that unit.

for adding and removing, I'd suggest a custom named ability that renders magic immunity and to remove that one so you won't have any issues interfering with other abilities that might give mgic immunity as well.
 
Status
Not open for further replies.
Top