| 6 | IMPLEMENT(Notowns_Jump); |
| 7 | |
| 8 | bool Notowns_Jump::execute(aithread &thread) const |
| 9 | { |
| 10 | // Retrieve parameters |
| 11 | WORD wUnitType, wOffset; |
| 12 | thread.readTuple( std::tie(wUnitType, wOffset) ); |
| 13 | |
| 14 | if ( Broodwar->self()->allUnitCount(wUnitType) == 0 ) |
| 15 | thread.setScriptOffset( wOffset ); |
| 16 | |
| 17 | // Save debug info and return |
| 18 | thread.saveDebug(Text::Green, this->getOpcode(), "%s p_%04X", AISCRIPT::getUnitName(wUnitType), wOffset); |
| 19 | return true; |
| 20 | } |
nothing calls this directly
no test coverage detected