| 40 | animState == BW::Anims::AirAttkInit) && this->orderTarget.pUnit != nullptr; |
| 41 | } |
| 42 | int CUnit::getGroundWeaponCooldown() const |
| 43 | { |
| 44 | const BWAPI::UnitType type = this->type(); |
| 45 | if (type == BWAPI::UnitTypes::Protoss_Reaver || type == BWAPI::UnitTypes::Hero_Warbringer) |
| 46 | { |
| 47 | return this->mainOrderTimer; |
| 48 | } |
| 49 | return getDamageDealer()->groundWeaponCooldown; |
| 50 | } |
| 51 | int CUnit::getAirWeaponCooldown() const |
| 52 | { |
| 53 | return getDamageDealer()->airWeaponCooldown; |
no test coverage detected