コード例 #1
0
        public static void Execute5()
        {
            var rtarget = TargetSelector.GetTarget(SpellsManager.R.Range, DamageType.Magical);

            if ((rtarget == null) || rtarget.IsInvulnerable)
            {
                return;
            }
            //Cast R
            if (SpellsManager.R.IsReady() && rtarget.IsValidTarget((SpellsManager.R.Range)) &&
                Prediction.Health.GetPrediction(rtarget, SpellsManager.R.CastDelay) <=
                SpellsManager.GetRealDamage(rtarget, SpellSlot.R))
            {
                SpellsManager.R.Cast(rtarget);
            }
        }
コード例 #2
0
        public static void Execute3()
        {
            var wtarget = TargetSelector.GetTarget(SpellsManager.E.Range, DamageType.Magical);

            if ((wtarget == null) || wtarget.IsInvulnerable)
            {
                return;
            }
            //Cast E
            if (SpellsManager.W.IsReady() && wtarget.IsValidTarget((SpellsManager.E.Range)) &&
                Prediction.Health.GetPrediction(wtarget, SpellsManager.W.CastDelay) <=
                SpellsManager.GetRealDamage(wtarget, SpellSlot.W))
            {
                SpellsManager.W.Cast();
            }
        }
コード例 #3
0
        public static void Execute2()
        {
            var qtarget = TargetSelector.GetTarget(SpellsManager.Q.Range, DamageType.Magical);

            if ((qtarget == null) || qtarget.IsInvulnerable)
            {
                return;
            }
            //Cast Q
            if (SpellsManager.Q.IsReady() && qtarget.IsValidTarget((SpellsManager.Q.Range)) &&
                Prediction.Health.GetPrediction(qtarget, SpellsManager.Q.CastDelay) <=
                SpellsManager.GetRealDamage(qtarget, SpellSlot.Q))
            {
                var prediction = SpellsManager.Q.GetPrediction(qtarget);
                SpellsManager.Q.Cast(prediction.CastPosition);
            }
        }