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

49.19 - ADAs applying AA Targeting Quirk twice #5375

Closed
RaozSpaz opened this issue Apr 18, 2024 · 4 comments · Fixed by #5376
Closed

49.19 - ADAs applying AA Targeting Quirk twice #5375

RaozSpaz opened this issue Apr 18, 2024 · 4 comments · Fixed by #5376
Assignees
Labels

Comments

@RaozSpaz
Copy link

Environment

49.19
Windows
Java 11

Description

The issue was presented by a player in the Aerospace Academy discord from version 49.18. However I was immediately able to replicate the issue in 49.19 with a standard Longbow.
image

And just for confirmation I did also run the test against a standard VTOL unit [not just ASF] and it also has the duplication.
image

One other final test was just to confirm that the bug was happening with all weapons and not just ADAs
image

Files

This can be replicated in any MegaMek with any unit using AA Targeting Quirk.

@HammerGS HammerGS added the Bug label Apr 18, 2024
@Sleet01
Copy link
Collaborator

Sleet01 commented Apr 18, 2024

@RaozSpaz 3rd picture is ADA again; was there a non-ADA example you meant to post there?

@Sleet01 Sleet01 self-assigned this Apr 18, 2024
@RaozSpaz
Copy link
Author

@RaozSpaz 3rd picture is ADA again; was there a non-ADA example you meant to post there?

Thats on me. I forgot my first weapon is the longest range weapon I have, which in this case was the AIV.

image

This blunder has revealed though that it may just be ADAs.

@Sleet01
Copy link
Collaborator

Sleet01 commented Apr 19, 2024

This blunder has revealed though that it may just be ADAs.

This is for the best, actually, as it has helped narrow down the exact problem.
Artillery attacks get their to-hit mods calculated separately from all other attacks because there are so many special rules, but ADA need to apply most of the usual mods because they are actually FLAK direct fire attacks (and because the rules say so).
So I set up the code to jump ADA mod calcs back to the main path, but did so in such a way that mods are applied twice for ADA only; knowing that made the issue and fix crystal clear!

@RaozSpaz
Copy link
Author

RaozSpaz commented Apr 19, 2024

Woo! When screw ups fix problems XD

Fixed the name to be more accurate to the situation

@RaozSpaz RaozSpaz changed the title 49.19 - AA Targeting Quirk applying twice 49.19 - ADAs applying AA Targeting Quirk twice Apr 19, 2024
Sleet01 added a commit that referenced this issue Apr 19, 2024
…twice

Fix #5375: quirks and SPAs applying twice to ADA missiles only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants