Beispiel #1
0
        public void AddSpell(CommonSpell spell)
        {
            char slot = char.MinValue;

            switch (spell.Slot)
            {
            case (SpellSlot.Q):
                slot = 'q';
                break;

            case (SpellSlot.W):
                slot = 'w';
                break;

            case (SpellSlot.E):
                slot = 'e';
                break;

            case (SpellSlot.R):
                slot = 'r';
                break;
            }

            spell.UseOnComboMenu     = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}tocombo", slot));
            spell.UseOnHarasMenu     = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}toharas", slot));
            spell.UseOnLaneClearMenu = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}tolaneclear", slot));
            SpellList.Add(spell);
        }
        public SemiAutomaticE(Lucian lucian)
        {
            this.lucian = lucian;
            E = lucian.Spells.E;

            if (KoreanUtils.GetParamBool(lucian.MainMenu, "dashmode"))
            {
                Game.OnWndProc += Game_OnWndProc;
            }
        }
Beispiel #3
0
        public CommonOrbwalkComplementation(CommonChampion champion)
        {
            this.champion = champion;
            spells        = champion.Spells;
            Q             = champion.Spells.Q;
            W             = champion.Spells.W;
            E             = champion.Spells.E;
            R             = champion.Spells.R;
            RFlash        = champion.Spells.RFlash;

            Game.OnUpdate += UseSkills;
        }
        public CommonOrbwalkComplementation(CommonChampion champion)
        {
            this.champion = champion;
            spells = champion.Spells;
            Q = champion.Spells.Q;
            W = champion.Spells.W;
            E = champion.Spells.E;
            R = champion.Spells.R;
            RFlash = champion.Spells.RFlash;

            Game.OnUpdate += UseSkills;
        }
Beispiel #5
0
        public CommonCore(CommonChampion champion)
        {
            this.champion = champion;
            spells        = champion.Spells;
            Q             = champion.Spells.Q;
            W             = champion.Spells.W;
            E             = champion.Spells.E;
            R             = champion.Spells.R;
            RFlash        = champion.Spells.RFlash;

            Game.OnUpdate += UseSkills;
        }
Beispiel #6
0
        public CommonCore(CommonChampion champion)
        {
            this.champion = champion;
            spells = champion.Spells;
            Q = champion.Spells.Q;
            W = champion.Spells.W;
            E = champion.Spells.E;
            R = champion.Spells.R;
            RFlash = champion.Spells.RFlash;

            Game.OnUpdate += UseSkills;
        }
Beispiel #7
0
        public static void Load(CommonChampion akali)
        {
            var Q = new CommonSpell(SpellSlot.Q, 580f, TargetSelector.DamageType.Magical);
            var W = new CommonSpell(SpellSlot.W, 680f, TargetSelector.DamageType.Magical);
            var E = new CommonSpell(SpellSlot.E, 295f, TargetSelector.DamageType.Physical);
            var R = new CommonSpell(SpellSlot.R, 680f, TargetSelector.DamageType.Magical);

            Q.SetTargetted(0.317f, 1000f);
            R.SetTargetted(0.1f, float.MaxValue);

            akali.Spells.AddSpell(Q);
            akali.Spells.AddSpell(W);
            akali.Spells.AddSpell(E);
            akali.Spells.AddSpell(R);
        }
Beispiel #8
0
        public static void Load(CommonChampion akali)
        {
            var Q = new CommonSpell(SpellSlot.Q, 600f, TargetSelector.DamageType.Magical);
            var W = new CommonSpell(SpellSlot.W, 0f, TargetSelector.DamageType.Magical);
            var E = new CommonSpell(SpellSlot.E, 610f, TargetSelector.DamageType.Magical);
            var R = new CommonSpell(SpellSlot.R, 625f, TargetSelector.DamageType.Magical);

            Q.SetTargetted(0.300f, 2500f);
            R.SetSkillshot(0.2f, 175f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            akali.Spells.AddSpell(Q);
            akali.Spells.AddSpell(W);
            akali.Spells.AddSpell(E);
            akali.Spells.AddSpell(R);
        }
Beispiel #9
0
        public static void Load(CommonChampion champion)
        {
            CommonSpell Q = new CommonSpell(SpellSlot.Q, 950, TargetSelector.DamageType.Magical);
            CommonSpell W = new CommonSpell(SpellSlot.W, 625, TargetSelector.DamageType.Magical);
            CommonSpell E = new CommonSpell(SpellSlot.E, 0, TargetSelector.DamageType.Magical);
            CommonSpell R = new CommonSpell(SpellSlot.R, 175, TargetSelector.DamageType.Magical);

            Q.SetSkillshot(0.75f, 200f, 450f, false, SkillshotType.SkillshotCircle);
            W.SetSkillshot(0.25f, 250f, float.MaxValue, false, SkillshotType.SkillshotCone);

            champion.Spells.AddSpell(Q);
            champion.Spells.AddSpell(W);
            champion.Spells.AddSpell(E);
            champion.Spells.AddSpell(R);
        }
Beispiel #10
0
        public static void Load(CommonChampion champion)
        {
            lucian = champion;

            CommonSpell Q = new CommonSpell(SpellSlot.Q, 675, TargetSelector.DamageType.Physical);
            CommonSpell W = new CommonSpell(SpellSlot.W, 1000, TargetSelector.DamageType.Magical);
            CommonSpell E = new CommonSpell(SpellSlot.E, 425, TargetSelector.DamageType.Physical);
            CommonSpell R = new CommonSpell(SpellSlot.R, 1400, TargetSelector.DamageType.Physical);

            Q.SetTargetted(0.25f, float.MaxValue);
            W.SetSkillshot(0.4f, 150f, 1600, true, SkillshotType.SkillshotCircle);
            E.SetSkillshot(0.25f, 1f, float.MaxValue, false, SkillshotType.SkillshotLine);
            R.SetSkillshot(0.2f, 110f, 2500, true, SkillshotType.SkillshotLine);

            champion.Spells.AddSpell(Q);
            champion.Spells.AddSpell(W);
            champion.Spells.AddSpell(E);
            champion.Spells.AddSpell(R);
        }
Beispiel #11
0
 public void RemoveSpell(CommonSpell spell)
 {
     SpellList.Remove(spell);
 }
Beispiel #12
0
        private void EnqueueSpell(CommonSpell spell, Obj_AI_Hero target)
        {
            if (!spell.UseOnCombo)
                return;

            Obj_AI_Hero selectedTarget = target ?? TargetSelector.GetTarget(spell.Range, spell.DamageType);

            if (selectedTarget == null)
                return;

            if (spell.IsInRange(selectedTarget))
            {
                EnqueueAction(
                    () => spell.IsReadyToCastOn(selectedTarget),
                    () => spell.Cast(selectedTarget),
                    () => !spell.IsReadyToCastOn(selectedTarget) || selectedTarget.IsDead);
            }
        }
Beispiel #13
0
 public void RemoveSpell(CommonSpell spell)
 {
     SpellList.Remove(spell);
 }
Beispiel #14
0
        public void AddSpell(CommonSpell spell)
        {
            char slot = char.MinValue;

            switch (spell.Slot)
            {
                case (SpellSlot.Q):
                    slot = 'q';
                    break;
                case (SpellSlot.W):
                    slot = 'w';
                    break;
                case (SpellSlot.E):
                    slot = 'e';
                    break;
                case (SpellSlot.R):
                    slot = 'r';
                    break;
            }

            spell.UseOnComboMenu = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}tocombo", slot));
            spell.UseOnHarasMenu = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}toharas", slot));
            spell.UseOnLaneClearMenu = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}tolaneclear", slot));
            SpellList.Add(spell);
        }