MCPcopy Create free account
hub / github.com/bwapi/bwapi / isSpell

Method isSpell

bwapi/BWAPILIB/Source/UnitType.cpp:2497–2502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2495 return this->isBuilding() && this->whatBuilds().second == 0 && this->getID() != UnitTypes::Zerg_Infested_Command_Center;
2496 }
2497 bool UnitType::isSpell() const
2498 {
2499 return this->getID() == UnitTypes::Spell_Dark_Swarm ||
2500 this->getID() == UnitTypes::Spell_Disruption_Web ||
2501 this->getID() == UnitTypes::Spell_Scanner_Sweep;
2502 }
2503 bool UnitType::producesCreep() const
2504 {
2505 return this->producesLarva() ||

Callers 2

isNeutralMethod · 0.95
Filters.cppFile · 0.80

Calls 1

getIDMethod · 0.45

Tested by

no test coverage detected