I have a prob about making one of my spells to work. Several errors occure and I have done almost anything to fix them but with no sucsess.
1)-The casting unit dissapears and the targeted unit starts taking damage from the Shadow Strike (It is the base ability).
2)-When the suffering creature dies or the duration of the Haunt expires the Casting unit pops out whichever comes first.
I think it's all good but when I target a unit with this ability it dies instantly or my unit enters his body but it can't get out. I have tested this one several times and I have discovered that if I target a neutal passive unit it dies (Allways) and if I target a neutal hostile unit my unit can't pop out. It just stays there forever. However I doubt that this is the main problem...
I have also tried to make the controller of casting unit to still have vision of his hidden unit but if I make that I can't even enter the opposing unit.
Please tell me if there are errors or you have a better idea that works.
-
haunt
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Haunt
-
-
Actions
-
Countdown Timer - Start Whatever as a One-shot timer that will expire in 10.00 seconds
-
Wait 1.00 seconds
-
Unit - Hide HauntingUnit
-
Set Whatever = (Last started timer)
-
Set DyingHauntedUnit = (Dying unit)
-
Set HauntingUnit = (Casting unit)
-
Set HauntEDUnit = (Target unit of ability being cast)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(HauntEDUnit is alive) Equal to True
-
-
Then - Actions
-
Wait until (((HauntEDUnit is dead) Equal to True) or ((Elapsed time for Whatever) Greater than or equal to 9.50)), checking every 0.50 seconds
-
Unit - Move HauntingUnit instantly to (Position of HauntEDUnit)
-
Unit - Unhide HauntingUnit
-
-
Else - Actions
-
Unit - Move HauntingUnit instantly to (Position of DyingHauntedUnit)
-
Unit - Unhide HauntingUnit
-
-
-
-
1)-The casting unit dissapears and the targeted unit starts taking damage from the Shadow Strike (It is the base ability).
2)-When the suffering creature dies or the duration of the Haunt expires the Casting unit pops out whichever comes first.
I think it's all good but when I target a unit with this ability it dies instantly or my unit enters his body but it can't get out. I have tested this one several times and I have discovered that if I target a neutal passive unit it dies (Allways) and if I target a neutal hostile unit my unit can't pop out. It just stays there forever. However I doubt that this is the main problem...
I have also tried to make the controller of casting unit to still have vision of his hidden unit but if I make that I can't even enter the opposing unit.
Please tell me if there are errors or you have a better idea that works.