| 7 | IMPLEMENT(Send_Suicide); |
| 8 | |
| 9 | bool Send_Suicide::execute(aithread &thread) const |
| 10 | { |
| 11 | // Retrieve parameters |
| 12 | BYTE bSuicideType; |
| 13 | thread.readTuple( std::tie(bSuicideType) ); |
| 14 | |
| 15 | // Execute |
| 16 | memset(MainController.attackGroups, 0, sizeof(MainController.attackGroups)); |
| 17 | MainController.wAttackGroup = 0; |
| 18 | // MainController.dwAttackTime = 0; |
| 19 | // AttackClear(); |
| 20 | // SendSuicide(bSuicideType); |
| 21 | MainController.dwAttackTime = Broodwar->elapsedTime() - 175; |
| 22 | |
| 23 | // Save debug info and return |
| 24 | thread.saveDebug(Text::Red, this->getOpcode(), "%u", bSuicideType); |
| 25 | return true; |
| 26 | } |
nothing calls this directly
no test coverage detected