Esempio n. 1
0
        private bool notKilleableWithOthersSpells(Obj_AI_Hero tar)
        {
            double totalDamage = 0;
            double qDamage = 0d, wDamage = 0d, eDamage = 0d;

            if (GetQ.IsReady())
            {
                qDamage = GetQ.GetDamage(tar);
            }
            if (GetW.IsReady())
            {
                wDamage = GetW.GetDamage(tar);
            }
            if (GetE.IsReady())
            {
                eDamage = GetE.GetDamage(tar);
            }
            totalDamage = qDamage + wDamage + eDamage;

            if (isKilleable(tar, totalDamage))
            {
                return(false);
            }

            return(true);
        }
Esempio n. 2
0
 public void TryBallE(Obj_AI_Hero t)
 {
     if (!castE(t))
     {
         if (GetQ.IsReady())
         {
             CastQE(t);
         }
     }
 }
Esempio n. 3
0
 public void TryBallE(AIHeroClient t)
 {
     if (!castE(t))
     {
         if (GetQ.IsReady())
         {
             CastQE(t);
         }
     }
 }
Esempio n. 4
0
        public bool CastQ()
        {
            if (!GetQ.IsReady())
            {
                return(false);
            }
            var qTarget = TargetSelector.GetTarget(GetQ.Range, TargetSelector.DamageType.Magical);

            if (qTarget != null)
            {
                var predictQ = GetQ.GetPrediction(qTarget, true);
                if (predictQ.Hitchance >= HitChance.VeryHigh)
                {
                    return(GetQ.Cast(predictQ.CastPosition));
                }
            }
            return(false);
        }
Esempio n. 5
0
 private bool NotKilleableWithOtherSpells(Obj_AI_Hero target, SyndraCore core)
 {
     if (GetQ.IsReady() && GetQ.IsKillable(target))
     {
         CastQ();
         return(false);
     }
     if (GetW.IsReady() && GetW.IsKillable(target))
     {
         CastW();
         return(false);
     }
     if (GetE.IsReady() && GetE.IsKillable(target))
     {
         CastE(core);
         return(false);
     }
     return(true);
 }
Esempio n. 6
0
 public override bool castQ(Core core)
 {
     if (GetQ.IsReady())
     {
         var qTarget     = TargetSelector.GetTarget(GetQ.Range, TargetSelector.DamageType.Magical);
         var onlyBlazedQ = core.GetMenu.getMenuBoolOption("CQS");
         if (qTarget == null || !GetQ.IsInRange(qTarget))
         {
             return(false);
         }
         if (onlyBlazedQ)
         {
             if (isBlazed(qTarget))
             {
                 core.cast(qTarget, GetQ, SebbyLib.Prediction.SkillshotType.SkillshotLine);
             }
         }
         else
         {
             core.cast(qTarget, GetQ, SebbyLib.Prediction.SkillshotType.SkillshotLine);
         }
     }
     return(false);
 }