"Target unit of ability being cast" event response bugged?

Killerphill

New Member
Reaction score
1
ok everytime i have a trigger like:

Event: unit begins casting an ability
Conidition: ability being cast equal to (dummy ability)

action: heal "target unit of ability being cast" by 50
Wait 10 seconds
heal "target unit of ability being cast" by 150

... now the unit will get healed the 1st time for 50 health. but the soon as i put a wait time in between, or a wait time anywhere for that matter, the secondary triggers never fires off. so in this case, the 150 heal that is after the 10 second wait time WILL NOT fire off!

im not sure whether my world editor is fked or not, is anyone else experiencing this issue?
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Do this:
Note: This is freehand
Code:
Healzorz
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) (==) <YourAbility>
    Actions
        Set tempTarget = (Target unit of ability being cast)
        Heal tempTarget by 50
        Wait 10 seconds...
        Heal tempTarget by 150
tempTarget is a Unit variable.

Try that and report back ;) .
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Lol.
When you use a "wait", the "Target unit of ability being cast" can change to a unit of a different ability.
So, you have to set the target unit into a variable, which doesn't change, unless you tell it to.

Anyways, good luck with your map!
 

wraithseeker

Tired.
Reaction score
122
your only problem was

Code:
A Unit starts casting the effect of an ability

Which should have been changed to

Code:
A unit starts the effect of an ability
which wolf fixed it
 
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