private void UseDefenceAbility() { if (Confidence.IsConfident(m_Mobile) || Evasion.IsEvading(m_Mobile) || CounterAttack.IsCountering(m_Mobile)) { return; } switch (Utility.Random(3)) { case 2: if (CanUseAbility(60.0, 10, 1.0)) { new Evasion(m_Mobile, null).Cast(); break; } goto case 1; case 1: if (CanUseAbility(40.0, 5, 1.0)) { new CounterAttack(m_Mobile, null).Cast(); break; } goto case 0; case 0: if (CanUseAbility(25.0, 10, 1.0)) { new Confidence(m_Mobile, null).Cast(); } break; } }
public void BushidoPower() { if (0.5 > Utility.RandomDouble() && !(Confidence.IsConfident(m_Mobile) || CounterAttack.IsCountering(m_Mobile) || Evasion.IsEvading(m_Mobile))) { UseBushidoStance(); } else { UseBushidoMove(); } }