The above trigger has several issues and potential issues with it:
1) the trigger leaks a point
2) because the trigger moves the unit via an actual blink, there will be a delay before the unit moves. Not only does this guarantee that the damage happens before the movement, but it ALSO leaves you wide open to a bug occurring if your unit gets stunned while trying to cast the blink etc.
3) the triggered damage will be reduced by armor value because the damage type is Normal instead of Universal. Always remember this: when triggering damage, the only 2 damage types that matter are Normal which is reduced by armor and Universal which is not.
4) the unit will face the direction it was facing before, rather than the target of the attack.
Do use the channel ability as he suggested, but don't use an actual blink ability. Instead just create a variable called TempPoint and do this:
Replace the special effect thunderclap with whatever flashy cool thing you want to appear at the actual point you go to.
- Blink Strike
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Blink Strike
- Actions
- Set TempPoint = (Position of (Target unit of ability being cast))
- Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Move (Triggering unit) instantly to TempPoint, facing TempPoint
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Target unit of ability being cast) belongs to an enemy of (Owner of (Triggering unit))) Equal to True
- Then - Actions
- Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 500.00 damage of attack type Spells and damage type Universal
- Else - Actions
- Custom script: call RemoveLocation (udg_TempPoint)
2) Damage was indeed noticed before the actual blink, (see other reply)
Noone said that it may not be possible for other players to counter you right? So the Stun is kinda not a bug.
The Damage should indeed be on the Blink part of the trigger. (Notice that Ability Being Cast is not Blink Strike any more)
In my trigger, TempPoint is a point. In Wietlol's trigger, TempCaster is a unit and TempTarget is a unit.which variable type is that variable?
When referencing things multiple times, (Triggering Unit, etc.) store them into a variable. Variables are faster than functions.
i have a problem with the blink behind target, when i changed the point you move instantly to PointTemp2 the hero teleport to the center of the map