public static Vector3 GetMovementPrediction(Obj_AI_Base target, float time = 1f) { var input = new PredictionInput() { Unit = target, Delay = time }; if (input.Unit.IsDashing()) { return(Prediction.GetDashingPrediction(input).UnitPosition); } //Unit is immobile. var remainingImmobileT = Prediction.UnitIsImmobileUntil(input.Unit); return(remainingImmobileT >= 0d ? Prediction.GetImmobilePrediction(input, remainingImmobileT).UnitPosition : Prediction.GetStandardPrediction(input).UnitPosition); }