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 6373: Fixed "unit that starts and ends a Movement Phase in liquid magma takes an additional damage" so it doesn't apply to units above the magma #6419

Conversation

psikomonkie
Copy link
Collaborator

Issue 6373: Fixed "unit that starts and ends a Movement Phase in liquid magma takes an additional damage" so it doesn't apply to units above the magma (vtol, hover, bridge) and so units can't avoid it by standing still.

Fixes #6373

I moved the extra damage for starting & ending a turn inside magma from inside of processSteps(), which won't do much if you don't take any steps, to after it finishes processing all of the steps. Finally, it properly checks if the unit is actually in the magma, or above the magma (Vtol, hovering, bridge).

…id magma takes an additional damage" so it doesn't apply to units above the magma (vtol, hover, bridge) and so units can't avoid it by standing still.
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.53%. Comparing base (55b9b02) to head (f75bd70).
Report is 16 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6419   +/-   ##
=========================================
  Coverage     28.53%   28.53%           
- Complexity    14089    14090    +1     
=========================================
  Files          2792     2792           
  Lines        273746   273746           
  Branches      48492    48492           
=========================================
+ Hits          78102    78104    +2     
+ Misses       191664   191661    -3     
- Partials       3980     3981    +1     

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

@psikomonkie

This comment was marked as resolved.

…ma damage at the start of the round. Instead, let's track if it took magma damage at the start of the round.
@psikomonkie
Copy link
Collaborator Author

Hey! This is ready for review. Thanks!

@IllianiCBT IllianiCBT merged commit 3d7d0f7 into MegaMek:master Jan 18, 2025
6 checks passed
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.

Liquid Magma damages Meks on bridges
3 participants