Ok if the unit can blink. InappropriateUnitType - the unit is not a mage. ResearchNotUnlocked - the required technology is not unlocked.
(&self)
| 845 | /// * InappropriateUnitType - the unit is not a mage. |
| 846 | /// * ResearchNotUnlocked - the required technology is not unlocked. |
| 847 | pub(crate) fn ok_if_blink_unlocked(&self) -> Result<(), GameError> { |
| 848 | self.ok_if_unit_type(Mage)?; |
| 849 | Ok(self.ok_if_ability_unlocked()?) |
| 850 | } |
| 851 | |
| 852 | /// Updates the unit as if it has blinked. |
| 853 | pub(crate) fn blink(&mut self, location: MapLocation) { |
no test coverage detected