private void OnGapcloser(Obj_AI_Hero target, EGap.GapcloserArgs Args) { if (target != null && Args.EndPosition.Distance(Player) < E.Range && E.Ready && target.IsDashing() && target.IsValidTarget(E.Range)) { E.Cast(Args.EndPosition); } }
private void OnGapCloser(Obj_AI_Hero target, EGap.GapcloserArgs Args) { if (Player.IsDead) { return; } if (target == null || !target.IsEnemy) { return; } if (Args.EndPosition.Distance(Player) < E.Range && E.Ready && target.IsDashing() && target.IsValidTarget(E.Range)) { E.Cast(target); } }