Creating Illusions

Status
Not open for further replies.
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:
However https://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.
 
@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.
Back
Top