Пример #1
0
        public override bool Start(Living living)
        {
            IceFronzeEquipEffect iceFronzeEquipEffect = living.EffectList.GetOfType(eEffectType.IceFronzeEquipEffect) as IceFronzeEquipEffect;

            if (iceFronzeEquipEffect != null)
            {
                iceFronzeEquipEffect.m_probability = ((this.m_probability > iceFronzeEquipEffect.m_probability) ? this.m_probability : iceFronzeEquipEffect.m_probability);
                return(true);
            }
            return(base.Start(living));
        }
Пример #2
0
        public override bool Start(Living living)
        {
            IceFronzeEquipEffect effect = living.EffectList.GetOfType(eEffectType.IceFronzeEquipEffect) as IceFronzeEquipEffect;

            if (effect != null)
            {
                effect.m_probability = m_probability > effect.m_probability ? m_probability : effect.m_probability;
                return(true);
            }
            else
            {
                return(base.Start(living));
            }
        }
Пример #3
0
        public override bool Start(Living living)
        {
            IceFronzeEquipEffect effect = living.EffectList.GetOfType(eEffectType.IceFronzeEquipEffect) as IceFronzeEquipEffect;
            bool result;

            if (effect != null)
            {
                effect.m_probability = ((this.m_probability > effect.m_probability) ? this.m_probability : effect.m_probability);
                result = true;
            }
            else
            {
                result = base.Start(living);
            }
            return(result);
        }