Пример #1
0
        public static void Initialize()
        {
            // General
            _r = new Spell(SpellSlot.R);

            // Unburrowed
            _qNormal = new Spell(SpellSlot.Q, 300);
            _wNormal = new Spell(SpellSlot.W, 0);
            _eNormal = new Spell(SpellSlot.E, 250);

            // Burrowed
            _qBurrowed = new Spell(SpellSlot.Q, 1500);
            _wBurrowed = new Spell(SpellSlot.W, 0);
            _eBurrowed = new Spell(SpellSlot.E, 750);

            // Finetune spells
            QBurrowed.SetSkillshot(0.125f, 60, 4000, true, SkillshotType.SkillshotLine);
            EBurrowed.SetSkillshot(0, 60, 1600, false, SkillshotType.SkillshotLine);

            // Initialize cooldowns
            cooldowns = new Dictionary <string, float[]>()
            {
                { "RekSaiQ", new float[] { 4, 4, 4, 4, 4 } },
                { "RekSaiE", new float[] { 12, 12, 12, 12, 12 } },
                { "RekSaiR", new float[] { 150, 110, 80 } },
                { "reksaiqburrowed", new float[] { 11, 10, 9, 8, 7 } },
                { "reksaieburrowed", new float[] { 20, 19.5f, 19, 18.5f, 18 } },
            };

            Spellbook.OnCastSpell += Spellbook_OnCastSpell;
        }
Пример #2
0
 public override void useQ(Obj_AI_Base target)
 {
     if (QBurrowed.IsReady() || !player.IsBurrowed())
     {
         return;
     }
     QBurrowed.Cast(target);
 }