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

Creating Illusions

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
Remove his immunity before making the illusion, and then give it back right after that.
The flaw is;
What if you activate a timed magic immunity ?
Something like Avatar ?
You can't just remove the Avatar buff and then add to the unit while preserving duration, cooldown, etc.

(I created a thread similar like this; issues with illusions)
And this is why we need to sometime stick to default spell provided by Blizzard, which is the Mirror Image.
Mirror Image will still preserve the magic immunity (on illusions - I used the Spell Immunity (Night Elf)) after casting the spell.
 
Last edited:
Level 23
Joined
Feb 6, 2014
Messages
2,466
However http://www.hiveworkshop.com/forums/jass-resources-412/snippet-illusion-276304/ already works on Spell Immune units so no need to do something. If you would use it at GUI it will be something like this
  • Custom script: set udg_YourIllusion = CreateIllusion(udg_YourOwner, udg_UnitReference, 'A000', 0, 0)
where 'A000' is based on Item Illusion Ability. Press CTRL+D on Object Editor to find the rawcode you of the ability based on Item Illusion. The last two zeroes are the x and y coordinate where the illusion will spawn.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
@Flux
Can you tell me how you did that ?
Casting Item Illusion on Spell Immune unit.
I'm not proficient in vJASS to understand the code.
Just tell me briefly on the part where you can cast the Item Illusion on Spell Immune unit, thanks!


Just read the comments, lel.
 
Last edited:
Status
Not open for further replies.
Top