Makes the user of the spell blinks to his enemy and knockback it.
[trigger=]
Blink Knockback
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Dash Assault
Actions
Set BK_Cast = (Triggering unit)
Set BK_Target = (Target unit of ability being cast)
Set BK_TargPoint = (Position of BK_Target)
Set BK_CastFace = (Facing of BK_Cast)
Set BK_TargBack = (BK_TargPoint offset by 50.00 towards BK_CastFace degrees)
Set BK_LoopCounter = 0
Unit - Move BK_Cast instantly to BK_TargBack
Unit - Make BK_Cast face BK_Target over 0.01 seconds
Custom script: call RemoveLocation(udg_BK_TargPoint)
Trigger - Turn on BK loop <gen>
[/trigger]
[trigger=]
BK loop
Events
Time - Every 0.02 seconds of game time
Conditions
Actions
Set BK_CastPoint = (Position of BK_Cast)
Set BK_TargPoint = (Position of BK_Target)
Set BK_Angle = (BK_TargPoint offset by 5.00 towards (Angle from BK_CastPoint to BK_TargPoint) degrees)
Unit - Move BK_Target instantly to BK_Angle
Unit - Cause BK_Cast to damage BK_Target, dealing 10.00 damage of attack type Chaos and damage type Normal
Special Effect - Create a special effect at BK_Angle using Abilities\Spells\Orc\MirrorImage\MirrorImageDeathCaster.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_BK_CastPoint)
Custom script: call RemoveLocation(udg_BK_TargPoint)
Custom script: call RemoveLocation(udg_BK_Angle)
Set BK_LoopCounter = (BK_LoopCounter + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
BK_LoopCounter Greater than 50
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
[/trigger]
Keywords:
Knock,Back,Knockback,Bash,Blink,Blink Knockback