Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 4520 princess only fires aero tag #5020

Merged
merged 10 commits into from
Jan 13, 2024
2 changes: 1 addition & 1 deletion megamek/src/megamek/client/bot/princess/FireControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ ToHitData guessToHitModifierHelperForAnyAttack(final Entity shooter,

final int smokeLevel = targetHex.terrainLevel(Terrains.SMOKE);
if (1 <= smokeLevel) {
// Smoke level doesn't necessary correspond to the to-hit modifier
// Smoke level doesn't necessarily correspond to the to-hit modifier
// even levels are light smoke, odd are heavy smoke
toHitData.addModifier((smokeLevel % 2) + 1, TH_SMOKE);
}
Expand Down
Loading