Fixed eplrs for frontline ground units

This commit is contained in:
Khopa 2020-10-03 17:35:06 +02:00
parent 3df8fb5fe9
commit db36a76c2c

View File

@ -184,9 +184,9 @@ class GroundConflictGenerator:
for dcs_group, group in ally_groups: for dcs_group, group in ally_groups:
if hasattr(group.unit_type, 'eplrs'): if hasattr(group.units[0], 'eprls'):
if group.unit_type.eplrs: if group.units[0].eprls:
group.points[0].tasks.append(EPLRS(group.id)) dcs_group.points[0].tasks.append(EPLRS(dcs_group.id))
if group.role == CombatGroupRole.ARTILLERY: if group.role == CombatGroupRole.ARTILLERY:
# Fire on any ennemy in range # Fire on any ennemy in range