Skip to content

Commit

Permalink
Issue 6305: Partial Cover from water should now apply and hull down s…
Browse files Browse the repository at this point in the history
…hould grant a bonus now - NPE prevention
  • Loading branch information
psikomonkie committed Dec 23, 2024
1 parent 458c2dd commit feb13be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megamek/src/megamek/common/actions/WeaponAttackAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -4682,7 +4682,7 @@ private static ToHitData compileTerrainAndLosToHitMods(Game game, Entity ae, Tar
// direction the attack comes from matters
else if ((te instanceof Tank
|| (te instanceof QuadVee && te.getConversionMode() == QuadVee.CONV_MODE_VEHICLE))
&& targHex.containsTerrain(Terrains.FORTIFIED)) {
&& targetHexContainsFortified) {
// TODO make this a LoS mod so that attacks will come in from
// directions that grant Hull Down Mods
int moveInDirection;
Expand Down

0 comments on commit feb13be

Please sign in to comment.