Enable EPLRS for ground units that can use it.

This commit is contained in:
Khopa 2020-10-03 16:18:12 +02:00
parent 6e14ec3227
commit 07d4b126f5

View File

@ -183,6 +183,11 @@ class GroundConflictGenerator:
return
for dcs_group, group in ally_groups:
if hasattr(group.unit_type, 'eplrs'):
if group.unit_type.eplrs:
group.points[0].tasks.append(EPLRS(group.id))
if group.role == CombatGroupRole.ARTILLERY:
# Fire on any ennemy in range
if self.game.settings.perf_artillery: