Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 internal static Geometry.Polygon.Rectangle ERectangle(Obj_AI_Base target)
 {
     return new Geometry.Polygon.Rectangle(target.ServerPosition, target.EndPos(), target.BoundingRadius);
 }