(&self, ranger_id: UnitID)
| 1538 | } |
| 1539 | |
| 1540 | fn ok_if_begin_snipe_ready(&self, ranger_id: UnitID) -> Result<(), GameError> { |
| 1541 | let ranger = self.my_unit(ranger_id)?; |
| 1542 | ranger.ok_if_snipe_unlocked()?; |
| 1543 | ranger.ok_if_ability_ready()?; |
| 1544 | Ok(()) |
| 1545 | } |
| 1546 | |
| 1547 | /// Whether the ranger is ready to begin snipe. Tests whether the ranger's |
| 1548 | /// ability heat is sufficiently low. |
no test coverage detected