Пример #1
0
        public static SpellSlot[] GetSpellSlots(this ComboSpell spell)
        {
            switch (spell)
            {
            case ComboSpell.Q:
            case ComboSpell.W:
            case ComboSpell.E:
            case ComboSpell.R:
                return(new[] { spell.GetSpell().Slot });

            case ComboSpell.IGNITE:
                return(new[] { player.GetIngiteSlot() });

            default:
                return(new[] { SpellSlot.Unknown });
            }
        }
Пример #2
0
        public static Spell GetSpell(this ComboSpell spell)
        {
            switch (spell)
            {
            case ComboSpell.Q:
                return(Q);

            case ComboSpell.W:
                return(W);

            case ComboSpell.E:
                return(E);

            case ComboSpell.R:
                return(R);
            }
            return(null);
        }