Beispiel #1
0
        /// <summary>
        /// Initialize all spells
        /// </summary>
        public static void Initialize()
        {
            Q = new Spell(SpellSlot.Q, 710);
            W = new Spell(SpellSlot.W, 750);
            E = new Spell(SpellSlot.E, 950);

            E.SetSkillshot(0.25f, 70, 1600, true, SkillshotType.SkillshotLine);
            W.SetSkillshot(0, 70, 1500, false, SkillshotType.SkillshotLine);

            if (Utilities.UltimateKey() == "Q")
            {
                R = new Spell(SpellSlot.R, 710);
            }
            else if (Utilities.UltimateKey() == "W")
            {
                R = new Spell(SpellSlot.R, 750);
                R.SetSkillshot(0, 70, 1500, false, SkillshotType.SkillshotLine);
            }
            else if (Utilities.UltimateKey() == "E")
            {
                R = new Spell(SpellSlot.R, 950);
                R.SetSkillshot(0.25f, 70, 1600, true, SkillshotType.SkillshotLine);
            }
            else if (Utilities.UltimateKey() == "none")
            {
                R = new Spell(SpellSlot.R, 0);
            }
        }
Beispiel #2
0
        private static float UltimateDamage(AIHeroClient enemy, SpellSlot slot)
        {
            const float damage = 0f;

            if (!slot.IsReady() || ObjectManager.Player.Spellbook.GetSpell(slot).State != SpellState.NotLearned)
            {
                return(0f);
            }

            if (Utilities.UltimateKey() == "Q")
            {
                return
                    ((float)
                     ObjectManager.Player.CalcDamage(enemy, Damage.DamageType.Magical, RQ[Spells.R.Level - 1] + .60 *
                                                     ObjectManager.Player
                                                     .FlatMagicDamageMod));
            }
            if (Utilities.UltimateKey() == "W")
            {
                return
                    ((float)
                     ObjectManager.Player.CalcDamage(enemy, Damage.DamageType.Magical,
                                                     RW[Spells.R.Level - 1] + .90 * ObjectManager.Player.FlatMagicDamageMod));
            }
            if (Utilities.UltimateKey() == "E")
            {
                return
                    ((float)
                     ObjectManager.Player.CalcDamage(enemy, Damage.DamageType.Magical, RQ[Spells.R.Level - 1] + .60 *
                                                     ObjectManager.Player
                                                     .FlatMagicDamageMod));
            }

            return(damage);
        }