diff --git a/MekHQ/src/mekhq/campaign/ResolveScenarioTracker.java b/MekHQ/src/mekhq/campaign/ResolveScenarioTracker.java index 43a77da4c5..91ab6f3adc 100644 --- a/MekHQ/src/mekhq/campaign/ResolveScenarioTracker.java +++ b/MekHQ/src/mekhq/campaign/ResolveScenarioTracker.java @@ -1527,7 +1527,7 @@ public void resolveScenario(ScenarioStatus resolution, String report) { // Then, we need to determine if they are a defector if (prisonerStatus.isCurrentPrisoner() && getCampaign().getCampaignOptions().isUseAtBPrisonerDefection()) { - int campaignUnitRating = getCampaign().getUnitRatingMod(); + int campaignUnitRating = getCampaign().getAtBUnitRatingMod(); // if this isn't an AtB Contract, we use the individual's experience level, // instead of enemy skill diff --git a/MekHQ/unittests/mekhq/gui/dialog/nagDialogs/UntreatedPersonnelNagDialogTest.java b/MekHQ/unittests/mekhq/gui/dialog/nagDialogs/UntreatedPersonnelNagDialogTest.java index 8a3fe38305..6d53db7cb9 100644 --- a/MekHQ/unittests/mekhq/gui/dialog/nagDialogs/UntreatedPersonnelNagDialogTest.java +++ b/MekHQ/unittests/mekhq/gui/dialog/nagDialogs/UntreatedPersonnelNagDialogTest.java @@ -14,9 +14,9 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; - import static mekhq.gui.dialog.nagDialogs.UntreatedPersonnelNagDialog.isUntreatedInjury; -import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; class UntreatedPersonnelNagDialogTest { Campaign campaign; @@ -37,7 +37,7 @@ public static void setup() { @BeforeEach public void init() { campaign = new Campaign(); - person = campaign.newPerson(PersonnelRole.MECHWARRIOR); + person = campaign.newPerson(PersonnelRole.MEKWARRIOR); person.setHits(1); }