Trigger:
- Combat Knife
- Events
- Unit - A unit Finishes casting an ability
- Conditions
- (Ability being cast) Equal to Com|cffffcc00b|rat Knife (Neutral Hostile)
- Actions
- Set KnockTo = ((Position of (Target unit of ability being cast)) offset by 500.00 towards (Angle from (Position of (Casting unit)) to (Position of (Target unit of ability being cast))) degrees)
- For each (Integer A) from 1 to 100, do (Actions)
- Loop - Actions
- Set MoveTo = ((Target point of ability being cast) offset by 3.00 towards (Angle from (Position of (Target unit of issued order)) to KnockTo) degrees)
- Wait 0.01 seconds
- Unit - Move (Target unit of ability being cast) instantly to MoveTo
- Loop - Actions
- Events
So, I'm a little confused by what's going on with this trigger; Notably, this isn't something I came up with, it's something I saw in a tutorial on youtube.
First off, I'm not entirely sure I understand what exactly is going on with the trigger; for example, why is knockto being set with a 500 offset? If anyone can explain the laymens terms happenings behind this trigger, that would be much appreciated..
And second off, the trigger isn't doing what I want it to. Basically, it's supposed to move the unit back, in a slide, 300 units; Instead, it seems like only the bash portion is reliable, as it's based on firebolt (neutral hostile). Is the base spell causing the problem? The cast range for the ability is 200, it has no cast time.. The above trigger seemed to work fine for the guy who posted the tutorial, but when I test it, it seems to sometimes teleport the unit it targets a small distance, and that's only sometimes.
Can anyone give me some insight?