Tetra

Tetra

23M Downloads

Tetra applies bleed effects even when the attack fails

lab3 opened this issue ยท 0 comments

commented

Observed behaviour

Tetra still applies the item effects even if the player can't be hit by another player when using a greatsword with a heavy serrated blade.

player.hurt returns a boolean indicating whether or not the attack was successful. Tetra still applies the bleed effect even if hurt return false.

Expected behaviour

If player.hurt returns false tetra should not apply the item effects from weapon with the failed attack

Steps to reproduce

The easiest way to replicate would be with the PVP Flagging mod.
https://www.curseforge.com/minecraft/mc-mods/pvp-flagging

By default players cannot attack each other unless they flag for pvp. If you have a greatsword with a heavy serrated blade and stand next to a player and attack with the sweep the primary attack will fail but then tetra still applies the bleed effect.

Crashlog

No response

Tetra version

6.3.0

mutil/mGui version

6.1.1

Forge version

47.2.20

Other mods

PVP Flagging