Exemplo n.º 1
0
        public override bool Start(Living living)
        {
            AddAgilityEffect addAgilityEffect = living.EffectList.GetOfType(eEffectType.AddAgilityEffect) as AddAgilityEffect;

            if (addAgilityEffect != null)
            {
                this.m_probablity = ((this.m_probablity > addAgilityEffect.m_probablity) ? this.m_probablity : addAgilityEffect.m_probablity);
                return(true);
            }
            return(base.Start(living));
        }
Exemplo n.º 2
0
        public override bool Start(Living living)
        {
            AddAgilityEffect effect = living.EffectList.GetOfType(eEffectType.AddAgilityEffect) as AddAgilityEffect;

            if (effect != null)
            {
                m_probablity = m_probablity > effect.m_probablity ? m_probablity : effect.m_probablity;
                return(true);
            }
            else
            {
                return(base.Start(living));
            }
        }
Exemplo n.º 3
0
        public override bool Start(Living living)
        {
            AddAgilityEffect effect = living.EffectList.GetOfType(eEffectType.AddAgilityEffect) as AddAgilityEffect;
            bool             result;

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