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

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

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