Skip to content

MinefieldBehavior: Adjust health based on remaining mines and regeneration - #44

Merged
x64-dev merged 1 commit into
mainfrom
seer/minefield-health-adjustment
Oct 10, 2025
Merged

MinefieldBehavior: Adjust health based on remaining mines and regeneration#44
x64-dev merged 1 commit into
mainfrom
seer/minefield-health-adjustment

Conversation

@seer-by-sentry

@seer-by-sentry seer-by-sentry Bot commented Oct 5, 2025

Copy link
Copy Markdown

Fixes CLIENT-CM. The issue was that: MinefieldBehavior prematurely destroys the victim object during damage notification, clearing the team pointer, causing Object::scoreTheKill to dereference NULL.

  • Modifies the health adjustment logic for minefields based on the number of remaining virtual mines.
  • If the minefield doesn't regenerate and has no mines left, its health is set to 0 to trigger natural death.
  • Otherwise, a minimum health is maintained for regenerating minefields.

This fix was generated by Seer in Sentry, triggered by x64-dev. 👁️ Run ID: 1769185

Not quite right? Click here to continue debugging with Seer.

@x64-dev
x64-dev marked this pull request as ready for review October 10, 2025 21:18
@x64-dev
x64-dev merged commit 3c386bd into main Oct 10, 2025
5 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.

1 participant