Spell Problem

sarkurayboy

New Member
Reaction score
7
This spell is called Time Walk , here the info below.
At some times , after casting the spell , the hero become Invulnarable permenent. I did this spell with a real simple trigger.

Short distance teleportation that allows the hero to move in and out of combat. Upon landing , hero is Invulnarable for 2 seconds. |n|n|cffffcc00Level 1|r - 15 second cooldown, 400 cast range. |n|cffffcc00Level 2|r - 13 second cooldown, 500 cast range. |n|cffffcc00Level 3|r - 11 second cooldown, 800 cast range.

Code:
 Event
 Unit - A unit Begins casting an ability
Conditions
    (Ability being cast) Equal to Time Walk 
Actions
    Unit - Make (Casting unit) Invulnerable
    Wait 2.00 seconds
    Unit - Make (Casting unit) Vulnerable

P.s : I am kinda noob with triggers.
 

Marcel

New Member
Reaction score
12
I help

I will help you,wait bit i check WE
Okey i got trigger and there it is: Event
Unit - A unit Starts Effect Of Ability
Conditions
(Ability being cast) Equal to Time Walk
Actions
Wait 0.10 seconds
Unit - Make (Casting unit) Invulnerable
Wait 2.00 seconds
Unit - Make (Casting unit) Vulnerable

This should do the job ;)
 

sarkurayboy

New Member
Reaction score
7
I will help you,wait bit i check WE
Okey i got trigger and there it is: Event
Unit - A unit Starts Effect Of Ability
Conditions
(Ability being cast) Equal to Time Walk
Actions
Wait 0.10 seconds
Unit - Make (Casting unit) Invulnerable
Wait 2.00 seconds
Unit - Make (Casting unit) Vulnerable

This should do the job ;)

ok , i will try this. however , i did try with "Starts Effect Of Ability" .
Same thing =(
 

Jagan

New Member
Reaction score
30
Code:
Event
Unit - A unit Starts the effects of an ability
Conditions
(Ability being cast) Equal to Time Walk
Actions
Set Time_Walk_Caster = (Triggering Unit)
Unit - Make Time_Walk_Caster Invulnerable
Wait 2.00 seconds
Unit - Make Time_Walk_Caster Vulnerable

This should work. The wait at the beginning of the trigger might've caused the earlier problem. And don't use Casting unit. Casting unit is lost after a wait. Triggering unit works better anyways.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top