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

            if (addDamageEffect != null)
            {
                this.m_probability = ((this.m_probability > addDamageEffect.m_probability) ? this.m_probability : addDamageEffect.m_probability);
                return(true);
            }
            return(base.Start(living));
        }
Exemple #2
0
        public override bool Start(Living living)
        {
            AddDamageEffect effect = living.EffectList.GetOfType(eEffectType.AddDamageEffect) as AddDamageEffect;

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