Exemplo n.º 1
0
 private void ValidateOffHandAttack(IEnemy enemy)
 {
     Assert.IsNotNull(enemy);
     Assert.IsTrue(BonusActionAvailable);
     Assert.IsTrue(OffhandAttackAvailable);
     Assert.IsTrue(CurrentOffHand.CanFire());
     Assert.IsTrue(CurrentOffHand.HasShotLoaded());
 }
Exemplo n.º 2
0
        private bool AttemptOhShoot(IEnemy enemy)
        {
            bool ret = false;

            if (CurrentOffHand.HasShotLoaded())
            {
                OffHandShoot(enemy);
                ret = true;
            }

            NumberOfShotsLostToMisfire += DetermineAtksNotShotFromMisfire(CurrentOffHand, 1, 1);

            return(ret);
        }
Exemplo n.º 3
0
 private bool CurrentOffHandCanSwap()
 {
     return(CurrentOffHand != null &&
            (!CurrentOffHand.HasShotLoaded() ||
             !CurrentOffHand.CanFire()));
 }