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

Issue #2652 TacOps BA crits #4046

Merged
merged 3 commits into from
Dec 22, 2022

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Dec 16, 2022

Fixes #2652

It might make sense not to merge this right before a release.

@SJuliez SJuliez added Errata This covers officially produced CGL errata that the programs need to implement. For New Dev Cycle This PR should be merged at the beginning of a dev cycle labels Dec 16, 2022
*
* @param isAttackingConvInfantry Set to true when attacked by CI, as these cannot score TacOps crits
*/
public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode,

Check notice

Code scanning / CodeQL

Useless parameter

The parameter 'table' is never used.
* @param isAttackingConvInfantry Set to true when attacked by CI, as these cannot score TacOps crits
*/
public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode,
int cover, boolean isAttackingConvInfantry) {

Check notice

Code scanning / CodeQL

Useless parameter

The parameter 'cover' is never used.
Comment on lines 600 to 601
public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode,
int cover, boolean isAttackingConvInfantry) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add this method with two unused parameters? Keeping it consistent with the general rollHitLocation methods?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More like, didn't think about it. I guess it's not worth getting the compiler warnings and github alerts for it, so I removed them.

@Windchild292 Windchild292 merged commit 53efab5 into MegaMek:master Dec 22, 2022
@SJuliez SJuliez deleted the Issue_2652_TO_BA_crits branch January 6, 2023 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Errata This covers officially produced CGL errata that the programs need to implement. For New Dev Cycle This PR should be merged at the beginning of a dev cycle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conventional infantry should not inflict battle armor critical hits
2 participants