HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

trigger wont remove ability

08-16-2006, 10:46 PM#1
refl3ction
Trigger:
Disembodiment
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Disembodiment (Sunken Spirit)
Collapse Actions
Wait 0.25 game-time seconds
Unit - Add Disembodiment to (Casting unit)
Wait 0.50 game-time seconds
Unit - Order (Casting unit) to Orc Blademaster - Wind Walk
Wait 0.50 game-time seconds
Unit - Remove Disembodiment from (Casting unit)

thats my trigger, the basis of this ability is that when casted (based off mirror image) an image is created and then the caster turns invisible (windwalk)

now my problem is that when casted it works fine, the image is created and then the heros goes invisible but then the ability isnt removed and so im like what the dealio
so can ne1 help?
08-16-2006, 11:28 PM#2
karukef
"Casting Unit" refers to whatever unit casted a spell most recently.

Since you have waits, other units may become Casting Unit in the meantime.

You need to store casting unit in a variable and refer to that.

Best would be using JASS to avoid multiinstancable issues, but you can just use a GUI variable too (then its not multiinstancable)
08-16-2006, 11:31 PM#3
Naakaloh
Try using Triggering Unit instead of Casting Unit. It's possible that the waits might be allowing the value returned by Casting Unit to be changed/reset.
08-17-2006, 12:51 AM#4
refl3ction
i got it now it works, thanks
08-17-2006, 07:50 AM#5
noix
this spell, look like the lancer spell from dota ?
if u know dota.
the lancer create 1 mirror image, and become invis.
08-17-2006, 08:22 AM#6
DioD
No..

Dota uses item to create illusion