SHARE
TWEET

Untitled

a guest Feb 17th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     async def lurk_lurk(self):
  2.         lurkers = self.units(LURKERMP).ready
  3.         lurkersburrow = self.units(LURKERMPBURROWED)
  4.         roaches = self.units(ROACH).ready
  5.         enemies = self.known_enemy_units.not_flying
  6.  
  7.         if enemies.amount >= 1:
  8.             for lurker in lurkers:
  9.                 if enemies.closest_to(lurker.position).distance_to(lurker.position) < 9 and BURROWDOWN_LURKER in await self.get_available_abilities(lurker):
  10.                     await self.do(lurker(BURROWDOWN_LURKER))
  11.             for lurker in lurkersburrow:
  12.                 if enemies.closest_to(lurker.position).distance_to(lurker.position) > 9 and BURROWUP_LURKER in await self.get_available_abilities(lurker):
  13.                     await self.do(lurker(BURROWUP_LURKER))
  14.  
  15.         else:
  16.             for lurker in lurkersburrow:
  17.                 await self.do(lurker(BURROWUP_LURKER))
  18.             if roaches:
  19.                 focal = roaches.furthest_to(self.start_location)
  20.                 for lurker in lurkers:
  21.                     if lurker.position.distance_to(focal.position) > 8:
  22.                         await self.do(lurker.move(focal.position))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top