Trigger:
- Trigger
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Drunken Haze
- Actions
- Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 500.00 damage of attack type Chaos and damage type Normal
Why Drunken Haze? Because you can remove all other debuffs and adjust its spell animation.
Yeah you didn't answer my question at all ludnica, sorry.
Melee Initialization
Events
Time - Every 0.02 seconds of game time
Conditions
(Number of units in Unitgroup) Greater than 0
Actions
Unit Group - Pick every unit in Unitgroup and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
((Picked unit) has buff Stunned) Equal to True
((Picked unit) has buff Stunned (Pause)) Equal to True
Then - Actions
Unit - Remove Stunned buff from (Picked unit)
Unit - Remove Stunned (Pause) buff from (Picked unit)
Else - Actions
you could do something like
add all the immune units into a unitgroup
then have a trigger like;
Code:Melee Initialization Events Time - Every 0.02 seconds of game time Conditions (Number of units in Unitgroup) Greater than 0 Actions Unit Group - Pick every unit in Unitgroup and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Or - Any (Conditions) are true Conditions ((Picked unit) has buff Stunned) Equal to True ((Picked unit) has buff Stunned (Pause)) Equal to True Then - Actions Unit - Remove Stunned buff from (Picked unit) Unit - Remove Stunned (Pause) buff from (Picked unit) Else - Actions
hows that going to cause lag?
all it does is remove a buff, its not creating or moving anything.
its not the event the causes lag its the actions
Untitled Trigger 001
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Storm Bolt
((Target unit of ability being cast) is in ImmuneGroup) Equal to True
Actions
Unit - Remove Stunned buff from (Target unit of ability being cast)
Unit - Remove Stunned (Pause) buff from (Target unit of ability being cast)
Never go lower than 0.03 in periodic triggers, or so I hear.