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