mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
minor fixes before rc
This commit is contained in:
@@ -78,7 +78,7 @@ class NavalInterceptEvent(Event):
|
||||
self.to_cp.base.affect_strength(-self.STRENGTH_INFLUENCE)
|
||||
|
||||
def player_attacking(self, flights: ScrambledFlightsDict):
|
||||
assert flights[CAS] and len(flights) == 1, "Invalid flights"
|
||||
assert CAS in flights and len(flights) == 1, "Invalid flights"
|
||||
|
||||
self.targets = {
|
||||
random.choice(db.find_unittype(CargoTransportation, self.defender_name)): self._targets_count(),
|
||||
@@ -99,7 +99,7 @@ class NavalInterceptEvent(Event):
|
||||
self.operation = op
|
||||
|
||||
def player_defending(self, flights: ScrambledFlightsDict):
|
||||
assert flights[CAP] and len(flights) == 1, "Invalid flights"
|
||||
assert CAP in flights and len(flights) == 1, "Invalid flights"
|
||||
|
||||
self.targets = {
|
||||
random.choice(db.find_unittype(CargoTransportation, self.defender_name)): self._targets_count(),
|
||||
|
||||
Reference in New Issue
Block a user