The active ability range. This is the range in which: workers can replicate, knights can javelin, rangers can snipe, mages can blink, and healers can overcharge. InappropriateUnitType - the unit is not a robot.
(&self)
| 592 | /// |
| 593 | /// * InappropriateUnitType - the unit is not a robot. |
| 594 | pub fn ability_range(&self) -> Result<u32, GameError> { |
| 595 | self.ok_if_robot()?; |
| 596 | Ok(self.ability_range) |
| 597 | } |
| 598 | |
| 599 | /// Ok if unit has unlocked its ability. |
| 600 | /// |
no test coverage detected