Guest User

Untitled

a guest
May 26th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. if(ensnared || irradiated || locked || mael || parasited || plagued)
  2. {
  3. for(set<Unit*>::const_iterator i=Broodwar->self()->getUnits().begin();i!=Broodwar->self()->getUnits().end();i++)
  4. {
  5. if((*i)->getType() == UnitTypes::Terran_Medic)
  6. {
  7. if((*i)->getDistance(this->getUnit()->getPosition()) < UnitTypes::Terran_Medic.sightRange())
  8. {
  9. (*i)->useTech(TechTypes::Restoration, this->getUnit());
  10. }
  11. }
  12. }
  13. }
Add Comment
Please, Sign In to add comment