Skip to content

Commit

Permalink
Fix Rebels with Booby Trap upgrade being unable to capture enemy buil…
Browse files Browse the repository at this point in the history
…dings without Alt-click.
  • Loading branch information
MustaphaTR committed Aug 14, 2024
1 parent a197645 commit 08e13d1
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions mods/gen/rules/infantry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,18 @@ infantry.rebel:
Class: infantry.rebel
Tooltip:
Name: actor-infantry-rebel-name
Captures:
RequiresCondition: capture_building && !booby_traps
Captures@BOOBY_TRAP:
CaptureTypes: building
Voice: Capture
CaptureCompleteVoice: CaptureComplete
CaptureDelay: 375
ConsumedByCapture: False
ForceTargetRelationships: Enemy
EnterCursor: ability
EnterBlockedCursor: move-blocked
RequiresCondition: capture_building && booby_traps
Armament@PRIMARY:
Weapon: mg.rebel
Armament@PRIMARY_BOOBY_TRAP_DEFAULT:
Expand All @@ -278,18 +290,10 @@ infantry.rebel:
TargetRelationships: None
ForceTargetRelationships: Neutral, Ally
RequiresCondition: booby_traps
Captures:
RequiresCondition: capture_building && !booby_traps
Captures@BOOBY_TRAP:
CaptureTypes: building
Voice: Capture
CaptureCompleteVoice: CaptureComplete
CaptureDelay: 375
ConsumedByCapture: False
ForceTargetRelationships: Enemy
EnterCursor: ability
EnterBlockedCursor: move-blocked
RequiresCondition: capture_building && booby_traps
-AttackFrontal: # Workaround to make Captures@BOOBY_TRAP: properly take priority over AttackFrontal.
AttackFrontal:
PauseOnCondition: leaflet
FacingTolerance: 0
Cloak:
InitialDelay: 200
CloakDelay: 100
Expand Down

0 comments on commit 08e13d1

Please sign in to comment.