Zalinian
New Member
- Reaction score
- 0
I'm trying to have a trigger detect if a unit has a specific buff, but it fails to work even when the unit really has the buff. I've narrowed the problem down to this small bit.
The spell cast gives the Test Shield 1 buff on its target, and I need to be able to start detecting the buff from right after the spell is casted.
The spell cast gives the Test Shield 1 buff on its target, and I need to be able to start detecting the buff from right after the spell is casted.
Trigger:
- Buff Test
- Events
- Unit - A unit Finishes casting an ability
- Conditions
- (Ability being cast) Equal to (==) Test Shield 1
- Actions
- Set temp_unit = (Target unit of ability being cast)
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (temp_unit has buff Test Shield 1 ) Equal to (==) True
- Then - Actions
- Game - Display to (All players) the text: has the buff
- Else - Actions
- Do nothing
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Set temp_unit = (Target unit of ability being cast)
- Events