From ee35cbc0d04b62809a2ddd5d56042ff89c0768fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 3 Oct 2022 17:49:24 +0200 Subject: [PATCH] Let bot Deviators prioritize vehicles. --- mods/d2k/rules/defaults.yaml | 8 ++++++++ mods/d2k/rules/vehicles.yaml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mods/d2k/rules/defaults.yaml b/mods/d2k/rules/defaults.yaml index 1961a0af97..a04a48b6e4 100644 --- a/mods/d2k/rules/defaults.yaml +++ b/mods/d2k/rules/defaults.yaml @@ -153,6 +153,14 @@ AttackMoveCondition: attack-move AssaultMoveCondition: assault-move +^AutoTargetVehicleAssaultMove: + Inherits: ^AutoTargetGroundAssaultMove + AutoTargetPriority@VEHICLES: + ValidTargets: Vehicle + InvalidTargets: Infantry, Structure, Defense + RequiresCondition: bot-owned + Priority: 10 + ^AutoTargetAll: AutoTarget: AttackAnythingCondition: stance-attackanything diff --git a/mods/d2k/rules/vehicles.yaml b/mods/d2k/rules/vehicles.yaml index ef05786536..c9ca5ed45a 100644 --- a/mods/d2k/rules/vehicles.yaml +++ b/mods/d2k/rules/vehicles.yaml @@ -514,7 +514,7 @@ stealth_raider: deviator: Inherits: ^Tank Inherits@GAINSEXPERIENCE: ^GainsExperience - Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove + Inherits@AUTOTARGET: ^AutoTargetVehicleAssaultMove Valued: Cost: 1000 Tooltip: