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

#5995 - Prevent Field Guns from exploding/jamming #6024

Merged
merged 2 commits into from
Sep 22, 2024

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Sep 21, 2024

Fixes #5995
I changed some checks from an instanceof to a isConventionalInfantry() as the instanceof check includes BA but the rule is only for field guns, i.e. CI.

Copy link

codecov bot commented Sep 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.09%. Comparing base (de830cc) to head (a70aa0e).
Report is 21 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6024      +/-   ##
============================================
- Coverage     29.09%   29.09%   -0.01%     
+ Complexity    13973    13972       -1     
============================================
  Files          2580     2580              
  Lines        267172   267176       +4     
  Branches      47710    47712       +2     
============================================
- Hits          77746    77744       -2     
- Misses       185527   185534       +7     
+ Partials       3899     3898       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SJuliez SJuliez changed the title Prevent Field Guns from exploding/jamming #5995 - Prevent Field Guns from exploding/jamming Sep 21, 2024
@SJuliez SJuliez merged commit e049e37 into MegaMek:master Sep 22, 2024
6 checks passed
@SJuliez SJuliez deleted the field-guns-explosion branch October 15, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[0.50.0] HVAC Field Guns can explode on a roll of 2 (and should not be able to)
2 participants