Example #1
0
        private static void Draw(SkillState skill)
        {
            Player player = GetPlayer(skill);
            int    count  = skill.PopBack();

            for (int i = 0; i < count; i++)
            {
                Card card = player.Deck[player.Deck.Count - 1];
                player.Deck.Remove(card);
                player.Hand.Add(card);
                skill.AddEvent(new Draw(card));
            }
        }