public override bool Start(Living living)
        {
            ReduceStrengthEquipEffect reduceStrengthEquipEffect = living.EffectList.GetOfType(eEffectType.ReduceStrengthEquipEffect) as ReduceStrengthEquipEffect;

            if (reduceStrengthEquipEffect != null)
            {
                reduceStrengthEquipEffect.m_probability = ((this.m_probability > reduceStrengthEquipEffect.m_probability) ? this.m_probability : reduceStrengthEquipEffect.m_probability);
                return(true);
            }
            return(base.Start(living));
        }
        public override bool Start(Living living)
        {
            ReduceStrengthEquipEffect effect = living.EffectList.GetOfType(eEffectType.ReduceStrengthEquipEffect) as ReduceStrengthEquipEffect;

            if (effect != null)
            {
                effect.m_probability = m_probability > effect.m_probability ? m_probability : effect.m_probability;
                return(true);
            }
            else
            {
                return(base.Start(living));
            }
        }
Example #3
0
        public override bool Start(Living living)
        {
            ReduceStrengthEquipEffect effect = living.EffectList.GetOfType(eEffectType.ReduceStrengthEquipEffect) as ReduceStrengthEquipEffect;
            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);
        }