Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(ensnared || irradiated || locked || mael || parasited || plagued)
- {
- for(set<Unit*>::const_iterator i=Broodwar->self()->getUnits().begin();i!=Broodwar->self()->getUnits().end();i++)
- {
- if((*i)->getType() == UnitTypes::Terran_Medic)
- {
- if((*i)->getDistance(this->getUnit()->getPosition()) < UnitTypes::Terran_Medic.sightRange())
- {
- (*i)->useTech(TechTypes::Restoration, this->getUnit());
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment