Ejemplo n.º 1
0
        public void TryActivateHide()
        {
            if (!IsGM || GMHideEnabled)
            {
                return;
            }

            var hideSkill = Constants.Gm.Skills.Hide;

            // Make sure that the user has the skill
            if (Skills.GetSkillLevel(hideSkill) == 0)
            {
                Skills.AddSkillPoint(hideSkill);
            }

            if (!Undercover)
            {
                Buffs.AddBuff(hideSkill, 1);
                SetHide(true, true);
            }
        }