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

Fix/shield blocking #340

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

Intybyte
Copy link
Contributor

When blocking the damage xp is not gained regardless if the hit was actually blocked, so for instance an entity attacking someone from the back, hence not activating the shield, will not earn defense XP.

As I couldn't find a way to check if the attack was shield blocked the only way to go about it is checking if the player yaw allows blocking, so redoing some internal calculations.

Requires testing.

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