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

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

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