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.
 
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?
 
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.
 
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.
Back
Top