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

Check for damage invulnerability when simulating overcast #854

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vgskye
Copy link
Contributor

@vgskye vgskye commented Feb 13, 2025

Normally since overcast bypasses invuln this should never trigger, but weird interactions with mods can happen, like FAPI FakePlayers being invulnerable to all damage.
This checks for the sole exception of isInvulnerableTo checked by trulyHurt, so it should close the loophole as trulyHurt will forcibly set target's HP if it's invulnerable using another method.
This still has a possible TOCTTOU for free overcast, but it should be rare enough that it's not practically feasible to exploit.
Should replace #850, as create deployers, at least on fabric, should be denied simulated-overcast via this check.

*Normally* since overcast bypasses invuln this should never trigger, but weird interactions with mods can happen, like FAPI FakePlayers being invulnerable to all damage.
This checks for the sole exception of isInvulnerableTo checked by trulyHurt, so it should close the loophole as trulyHurt will forcibly set target's HP if it's invulnerable using another method.
This still has a possible TOCTTOU for free overcast, but it should be rare enough that it's not practically feasible to exploit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

Successfully merging this pull request may close these issues.

1 participant