Skip to content

Check for MonsterMode::Death in isPossibleToHit()#7841

Merged
StephenCWills merged 1 commit intodiasurgical:masterfrom
StephenCWills:nohit-dead-monster
Mar 15, 2025
Merged

Check for MonsterMode::Death in isPossibleToHit()#7841
StephenCWills merged 1 commit intodiasurgical:masterfrom
StephenCWills:nohit-dead-monster

Conversation

@StephenCWills
Copy link
Copy Markdown
Member

@StephenCWills StephenCWills commented Mar 15, 2025

Recently a team of four reported on Discord there was a Blood Knight in their game that was still alive after Diablo was eliminated.

image

DiabloDeath() only updates the monster's animation and mode, but not hitpoints. The game stops calling ProcessPlayers(), but ProcessMissiles() should still be active. So my theory is that if a stray missile happens to hit the Blood Knight while Diablo is bleeding out, it could engage hit recovery which would override the animation and mode of the monster.

It seems reasonable to include MonsterMode::Death in the isPossibleToHit() function to prevent missiles from hitting monsters that were killed by DiabloDeath(). Monsters that were killed by other means should probably also not be possible to hit.

@StephenCWills StephenCWills merged commit 371421b into diasurgical:master Mar 15, 2025
23 checks passed
@StephenCWills StephenCWills deleted the nohit-dead-monster branch March 15, 2025 20:12
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.

2 participants