Skip to content

Commit

Permalink
Fix diving units targeting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed May 10, 2020
1 parent 599f318 commit aa57365
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions mods/ra2/rules/allied-naval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ dlph:
UncloakOn: Damage
IsPlayerPalette: true
Targetable:
TargetTypes: Ground, Water, ImmuneToAllySonic
TargetTypes: Ground, Water, ImmuneToAllySonic, Submergeable
RequiresCondition: !underwater
Targetable@underwater:
TargetTypes: Underwater, ImmuneToAllySonic
TargetTypes: Underwater, ImmuneToAllySonic, Submergeable
RequiresCondition: underwater
DetectCloaked:
CloakTypes: Underwater
Expand Down
10 changes: 6 additions & 4 deletions mods/ra2/rules/soviet-naval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ sub:
-LeavesTrails:
RevealsShroud:
Range: 6c0
-Targetable:
Targetable:
TargetTypes: Ground, Water, Repair
TargetTypes: Ground, Water, Repair, Submergeable
RequiresCondition: !underwater
Targetable@UNDERWATER:
TargetTypes: Underwater, Submergeable
RequiresCondition: underwater
Cloak:
CloakTypes: Underwater
Expand Down Expand Up @@ -195,10 +197,10 @@ sqd:
UncloakOn: Damage, Attack
IsPlayerPalette: true
Targetable:
TargetTypes: Ground, Water
TargetTypes: Ground, Water, Submergeable
RequiresCondition: !underwater
Targetable@underwater:
TargetTypes: Underwater
TargetTypes: Underwater, Submergeable
RequiresCondition: underwater
DetectCloaked:
CloakTypes: Underwater
Expand Down
4 changes: 2 additions & 2 deletions mods/ra2/weapons/missiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ HornetBombE:
ASWBomb:
Inherits: HornetBomb
Range: 3c0
ValidTargets: Underwater
ValidTargets: Submergeable
Projectile: Missile
BoundToTerrainType: Water
Warhead@1Dam: SpreadDamage
Damage: 50
Spread: 426
ValidTargets: Water, Underwater
ValidTargets: Submergeable
Versus:
None: 25
Flak: 25
Expand Down

0 comments on commit aa57365

Please sign in to comment.