Dark and Light Elves

Knockback / Stun

Pushes a target back and optionally stuns them for a short period of time. Chance to cause a knockback effect, min-max knockback range, knockback drift speed, immunity, stun duration, and drift/stun effect scripts are configurable. Knockback will not push up (or down?) steep inclines, as the elevation change must be limited to decrease the probability of non-linear pathfinding. Pathfinding is very primitive in this version, relegated to a single destination point search with one line-of-sight check and a single backtrack step if the LOS check fails; A more reliable pathfinding process would probably involve something like stringing a line of short-distance points with clear line-of-sight for consecutive steps towards the goal to determine the longest unobstructed linear knockback path in the specified range.