Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for damage invulnerability when simulating overcast
*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.
- Loading branch information