Hello i am trying to see if there are and distructors at a location and I get this,
anyone know how to fix this?
units = game_state.game_map[[27,14],[26,14],[25,14],[24,14],[23,14],[22,14],[26,15],[25,15],[24,15],[23,15],[22,15],[25,16],[24,16],[23,16],[22,16],[24,17],[23,17],[22,17],[23,18],[22,18]]
for unit in units:
gamelib.debug_write(f"rigth: {unit.unit_type}")
if unit.unit_type == 'DESTRUCTOR':
destructors_count_rigth = destructors_count_rigth + 1
and this is what i get
TypeError: ‘NoneType’ object is not iterable
I Can’t figure out whats wrong