Skip to content

Commit 370e9ac

Browse files
authored
Fixes #7967. Tripod turns were not being handled correctly. (#7969)
This corrects Tripods to turn correctly (1 MP no matter how many facing changes, as long as it has all its legs)
2 parents 639c553 + 998e23b commit 370e9ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

megamek/src/megamek/common/moves/TurnStep.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ public PhasePassResult preCompilation(final MoveStep moveStep, final Game game,
8787
}
8888

8989
// tripods with all their legs only pay for their first facing change
90+
// Rules reference Interstellar Operations - Alternate Eras, page 158.
9091
if ((entity instanceof TripodMek mek) &&
91-
mek.atLeastOneBadLeg() &&
92-
getTypesOfInterest().contains(prev.getType())) {
92+
!mek.atLeastOneBadLeg() &&
93+
(prev.getType() == MoveStepType.TURN_LEFT || prev.getType() == MoveStepType.TURN_RIGHT)) {
9394
moveStep.setMp(0);
9495
}
9596
if (entity.isDropping()) {

0 commit comments

Comments
 (0)