| 7 | IMPLEMENT(Move_DT); |
| 8 | |
| 9 | bool Move_DT::execute(aithread &thread) const |
| 10 | { |
| 11 | // Execute |
| 12 | Unitset myUnits( Broodwar->self()->getUnits() ); |
| 13 | |
| 14 | // NOTE: Not actual behaviour. Needs special AI Control & Captain assignment. |
| 15 | // However this command is not important and serves little purpose. |
| 16 | myUnits.erase_if(!((GetType == UnitTypes::Protoss_Dark_Templar || GetType == UnitTypes::Hero_Dark_Templar) && Exists && IsCompleted)); |
| 17 | myUnits.move( thread.getLocation().center() ); |
| 18 | |
| 19 | // Debug and return |
| 20 | thread.saveDebug(Text::Yellow, this->getOpcode()); |
| 21 | return true; |
| 22 | } |