| 2467 | (this->isCritter() || this->isResourceContainer() || this->isSpell()); |
| 2468 | } |
| 2469 | bool UnitType::isHero() const |
| 2470 | { |
| 2471 | return !!(UnitPrototypeFlags::unitFlags[this->getID()] & UnitPrototypeFlags::Hero) || |
| 2472 | this->getID() == UnitTypes::Hero_Dark_Templar || |
| 2473 | this->getID() == UnitTypes::Terran_Civilian; |
| 2474 | } |
| 2475 | bool UnitType::isPowerup() const |
| 2476 | { |
| 2477 | return this->getID() == UnitTypes::Powerup_Uraj_Crystal || |