Beispiel #1
0
        // Reveal uses magery and detect hidden vs. hide and stealth
        private static bool CheckDifficulty(Mobile from, Mobile m)
        {
            // Reveal always reveals vs. invisibility spell
            if (InvisibilitySpell.HasTimer(m))
            {
                return(true);
            }

            double magery       = from.Skills[SkillName.Hallucination].Value;
            double detectHidden = from.Skills[SkillName.ArtMagique].Value;

            double hiding  = m.Skills[SkillName.Discretion].Value;
            double stealth = m.Skills[SkillName.Infiltration].Value;

            double chance;

            if (hiding + stealth > 0)
            {
                chance = (magery + detectHidden) - (hiding + stealth);
            }
            else
            {
                chance = 100;
            }

            return(chance > Utility.Random(100));
        }
Beispiel #2
0
 public InternalTarget(InvisibilitySpell owner) : base(12, false, TargetFlags.Beneficial)
 {
     m_Owner = owner;
 }