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

Specific Spell Immunity

Status
Not open for further replies.
Level 8
Joined
Sep 10, 2013
Messages
372
Is there a way to make a certain unit type immune to a specific buff or a certain spell? Can I make orc grunts for example immune to stun effects? Can I make night elves immune to 'charm'? Something like that.
 
Level 8
Joined
Sep 10, 2013
Messages
372
I haven't tested it, but I think that removing the stun buff would still cause the unit to be interrupted. Can't there be a trigger to cause the spell to NOT make a buff on that certain unit type in the first place?
 
Level 11
Joined
Aug 24, 2012
Messages
429
Have you tried something like:

A unit starts casting a spell.

Spell being cast equal to Storm Hammer.

Target of spell equal to Grunt.

Cancel spell.

Display custom error message.

Keep in mind that triggers are not instantaneous, and if many triggers occur at the same time so you might want to add a small cast time to the Storm Hammer spell.

I don't think you can make the Grunt immune to just the stun effect without removing the stun effect afterwards (the unit will still be interrupted). You could just cancel the spell and then use another trigger to deal damage to the Grunt equal to the Storm Hammer's damage. This will simulate the effect you wanted without the stun.
 
Level 8
Joined
Jan 28, 2016
Messages
486
If you don't have too many specific immunities, you could use Death Adder's [post=2815707]unit class method[/post] from a recent thread here on The Hive. It's quite ingenious in my opinion and can be used to make your Night Elves immune to Charm without any triggering.
 
Status
Not open for further replies.
Top