Ok if the unit can snipe. InappropriateUnitType - the unit is not a ranger. ResearchNotUnlocked - the required technology is not unlocked.
(&self)
| 802 | /// * InappropriateUnitType - the unit is not a ranger. |
| 803 | /// * ResearchNotUnlocked - the required technology is not unlocked. |
| 804 | pub(crate) fn ok_if_snipe_unlocked(&self) -> Result<(), GameError> { |
| 805 | self.ok_if_unit_type(Ranger)?; |
| 806 | self.ok_if_ability_unlocked()?; |
| 807 | Ok(()) |
| 808 | } |
| 809 | |
| 810 | /// Updates the unit as if it has begun sniping. The unit's ability heat |
| 811 | /// does not increase until it has sniped. |
no test coverage detected