Don't plan BAI targets at dead subgroups.

Fixes https://github.com/Khopa/dcs_liberation/issues/900
This commit is contained in:
Dan Albert
2021-03-13 13:16:10 -08:00
parent 831516c5f5
commit 6200ec8e0e
3 changed files with 5 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ from typing import (
from dcs.mapping import Point
from dcs.unit import Unit
from dcs.unitgroup import VehicleGroup
from dcs.unitgroup import Group, VehicleGroup
if TYPE_CHECKING:
from game import Game
@@ -32,7 +32,7 @@ from .flight import Flight, FlightWaypoint, FlightWaypointType
@dataclass(frozen=True)
class StrikeTarget:
name: str
target: Union[VehicleGroup, TheaterGroundObject, Unit]
target: Union[VehicleGroup, TheaterGroundObject, Unit, Group]
class WaypointBuilder: