Closed tweakimp closed 5 years ago
Old: self.units.filter(lambda u: u.can_attack_ground or u.can_attack_air) New: self.units.filter(lambda u: u.can_attack)
self.units.filter(lambda u: u.can_attack_ground or u.can_attack_air)
self.units.filter(lambda u: u.can_attack)
Should be a bit faster :)
Old:
self.units.filter(lambda u: u.can_attack_ground or u.can_attack_air)
New:self.units.filter(lambda u: u.can_attack)
Should be a bit faster :)