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

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

            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)
        {
            AssimilateDamageEffect effect = living.EffectList.GetOfType(eEffectType.AssimilateDamageEffect) as AssimilateDamageEffect;
            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);
        }