From 460f5bbb30db18c20f101fc70672e2da7affdfdd Mon Sep 17 00:00:00 2001 From: Punsho Date: Sun, 15 Sep 2019 21:08:55 +0300 Subject: [PATCH] Make EMP dissable subterranean units while they're underground --- mods/ts/rules/nod-vehicles.yaml | 6 ++++++ mods/ts/weapons/superweapons.yaml | 1 + 2 files changed, 7 insertions(+) diff --git a/mods/ts/rules/nod-vehicles.yaml b/mods/ts/rules/nod-vehicles.yaml index e26746d561..3915b5f40e 100644 --- a/mods/ts/rules/nod-vehicles.yaml +++ b/mods/ts/rules/nod-vehicles.yaml @@ -421,6 +421,9 @@ SAPC: RequiresCondition: !submerged Targetable: RequiresCondition: !inside-tunnel && !submerged + Targetable@UNDERGROUND: + TargetTypes: Underground + RequiresCondition: submerged GrantConditionOnSubterraneanLayer: Condition: submerged SubterraneanTransitionImage: dig @@ -464,6 +467,9 @@ SUBTANK: RequiresCondition: !submerged Targetable: RequiresCondition: !inside-tunnel && !submerged + Targetable@UNDERGROUND: + TargetTypes: Underground + RequiresCondition: submerged GrantConditionOnSubterraneanLayer: Condition: submerged SubterraneanTransitionImage: dig diff --git a/mods/ts/weapons/superweapons.yaml b/mods/ts/weapons/superweapons.yaml index 4291d006ee..c2091924c0 100644 --- a/mods/ts/weapons/superweapons.yaml +++ b/mods/ts/weapons/superweapons.yaml @@ -129,3 +129,4 @@ EMPulseCannon: Range: 4c0 Duration: 250 Condition: empdisable + ValidTargets: Ground, Water, Underground