Exemplo n.º 1
0
        public override Skill Clone(int value)
        {
            var tmp = new PoisonResistance
            {
                Description = Description,
                MaxValue    = MaxValue,
                Name        = Name,
                Value       = value
            };

            return(tmp);
        }
Exemplo n.º 2
0
            private bool CheckResistPoison()
            {
                double naturalResistChance   = PoisonResistance.GetNaturalResistChance(m_Mobile, m_Poison);
                double temporaryResistChance = PoisonResistance.GetTemporaryResistChance(m_Mobile, m_Poison);

                if (naturalResistChance + temporaryResistChance > Utility.RandomDouble())
                {
                    return(true);
                }

                if (m_Poison.Level < 4 && TransformationSpell.UnderTransformation(m_Mobile, typeof(VampiricEmbraceSpell)))
                {
                    return(true);
                }

                if (m_Poison.Level < 3 && OrangePetals.UnderEffect(m_Mobile))
                {
                    return(true);
                }

                return(false);
            }
Exemplo n.º 3
0
 public AntidoteJewel1()
 {
     Name  = "Antidote Jewel 1";
     Skill = new PoisonResistance(1);
     Type  = SlotType.Small;
 }