DrdPlus/CombatActions/CombatActions.php
private function sanitizeRoundsOfAiming($roundsOfAiming): int
    {
        try {
            $roundsOfAiming = ToInteger::toPositiveInteger($roundsOfAiming);
            if ($roundsOfAiming > 3) {
                return 3;
            }

            return $roundsOfAiming;
        } catch (\Granam\Integer\Tools\Exceptions\Exception $integerException) {
            throw new Exceptions\InvalidFormatOfRoundsOfAiming($integerException->getMessage());
        }
    }
private function sanitizeRoundsOfAiming($roundsOfAiming): int
    {
        try {
            $roundsOfAiming = ToInteger::toPositiveInteger($roundsOfAiming);
            if ($roundsOfAiming > 3) {
                return 3;
            }

            return $roundsOfAiming;
        } catch (\Granam\Integer\Tools\Exceptions\Exception $integerException) {
            throw new Exceptions\InvalidFormatOfRoundsOfAiming($integerException->getMessage());
        }
    }
private function sanitizeRoundsOfAiming ( $ roundsOfAiming ) : int { try { $ roundsOfAiming = ToInteger :: toPositiveInteger ( $ roundsOfAiming ) ; if ( $ roundsOfAiming > 3 ) { return 3 ; } return $ roundsOfAiming ; } catch ( \ Granam \ Integer \ Tools \ Exceptions \ Exception $ integerException ) { throw new Exceptions \ InvalidFormatOfRoundsOfAiming ( $ integerException -> getMessage ( ) ) ; } }
Aiming gives bonus up to three rounds of aim, any addition is thrown away.

@param int $roundsOfAiming
@return int
@throws \DrdPlus\CombatActions\Exceptions\InvalidFormatOfRoundsOfAiming
Aiming gives bonus up to three rounds of aim any addition is thrown away .