コード例 #1
0
        public static void Practice(Player player, Room room, string skillToPractice)
        {
            var foundTrainer = FindItem.Trainer(room.mobs);

            if (foundTrainer == null)
            {
                HubContext.Instance.SendToClient("There is no one here that can train you.", player.HubGuid);
                return;
            }

            if (skillToPractice == string.Empty)
            {
                ShowSkills(player);
            }
            else
            {
                PracticeSkill(player, foundTrainer, skillToPractice);
            }
        }