Skip to content

Commit

Permalink
Merge pull request #5875 from Algebro7/fix-erroneous-edge-rerolls
Browse files Browse the repository at this point in the history
Always check if crew is KOed before rerolling edge
  • Loading branch information
Sleet01 authored Aug 8, 2024
2 parents b354eed + 1bdf04c commit aed40bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions megamek/src/megamek/server/GameManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -20574,9 +20574,9 @@ private Vector<Report> resolveCrewDamage(Entity e, int damage, int crewPos) {
// return true;
} // else
vDesc.add(r);
} while ((e.shouldUseEdge(OptionsConstants.EDGE_WHEN_KO)
&& e.getCrew().isKoThisRound(crewPos))
|| e.shouldUseEdge(OptionsConstants.EDGE_WHEN_AERO_KO));
} while (e.getCrew().isKoThisRound(crewPos)
&& (e.shouldUseEdge(OptionsConstants.EDGE_WHEN_KO)
|| e.shouldUseEdge(OptionsConstants.EDGE_WHEN_AERO_KO)));
// end of do-while
if (e.getCrew().isKoThisRound(crewPos)) {
boolean wasPilot = e.getCrew().getCurrentPilotIndex() == crewPos;
Expand Down

0 comments on commit aed40bb

Please sign in to comment.