• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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