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)); }
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)); } }
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); }