I have an issue with this trigger not setting the ‘target unit of ability being cast’ variable properly.
I set up a trigger to message the two variables every few seconds, and when the spell is cast the target variable doesn't show up.
The weirdest part is that if I remove the cooldown and cast the ability again before the bloodlust ends, the target unit variable does get set and the second trigger starts working. I have no idea why this happens or what the problem is. Can someone help me with this?
-
Untitled Trigger 004
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to MarkTest
-
Actions
- Set Mark_Caster = (Triggering unit)
- Set Mark_Targetn = (Target unit of ability being cast)
- Unit - Order (Triggering unit) to Attack (Target unit of ability being cast)
- Unit - Create 1 Boomerang Dummy Cast for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
- Unit - Hide (Last created unit)
- Unit - Add Mark BL to (Last created unit)
- Unit - Set level of Mark BL for (Last created unit) to (Level of Mark for (Triggering unit))
- Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Triggering unit)
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Wait until (((Triggering unit) has buff Bloodlust) Equal to False), checking every 0.50 seconds
- Unit - Create 1 Boomerang Dummy Cast for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
- Unit - Hide (Last created unit)
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Set Mark_Caster = (Last created unit)
- Set Mark_Target = (Last created unit)
-
Events
-
mark no control
-
Events
- Unit - A unit Is issued an order targeting an object
- Unit - A unit Is issued an order targeting a point
- Unit - A unit Is issued an order with no target
-
Conditions
- (Triggering unit) Equal to Mark_Caster
-
Actions
- Trigger - Turn off mark no control <gen>
- Unit - Order Mark_Caster to Attack Mark_Targetn
- Trigger - Turn on mark no control <gen>
-
Events
I set up a trigger to message the two variables every few seconds, and when the spell is cast the target variable doesn't show up.
The weirdest part is that if I remove the cooldown and cast the ability again before the bloodlust ends, the target unit variable does get set and the second trigger starts working. I have no idea why this happens or what the problem is. Can someone help me with this?