public static bool ECast(Obj_AI_Base target, bool dive, bool advDive = false) { if ((target.EndPos().UnderTurret() && dive) || !target.EndPos().UnderTurret()) { return(E.Cast(target)); } return(false); }
public static void EQ(Obj_AI_Base target1, Obj_AI_Base target2, bool Enabled, bool dive) { if (ECast(target1, dive) && E.IsReady() && target1.CanDash()) { if (Enabled && target2 != null && Q.IsReady() && target2.IsInRange(target1.EndPos(), 375)) { Q.Cast(target2); } } if (Enabled && target2 != null && Q.IsReady() && user.IsDashing()) { Q.Cast(target2); } }
internal static Geometry.Polygon.Rectangle ERectangle(Obj_AI_Base target) { return new Geometry.Polygon.Rectangle(target.ServerPosition, target.EndPos(), target.BoundingRadius); }