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 double counting weakness multiplier #767

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

Conversation

XDMAN500
Copy link

OCMEntityDamageByEntityEvent should be calculating the base damage by removing potion effect modifiers like weakness from the raw damage amount.

Instead of adding back the damage lost from the vanilla potion effect, The OCMEntityDamageByEntityEvent subtracts the weakness modifier and subtracts the weakness again in EntityDamageByEntityListener.

Reproduction Steps.
Attack an entity with a diamond sword without weakness. Base damage is 8.0 and final damage is 0.0 instead of the expected 4.0.

config.yml.txt

OCMEntityDamageByEntityEvent should be calculating the base damage
by removing potion effect modifiers like weakness from the raw damage amount.

Instead of adding back the damage lost from the vanilla potion effect,
The OCMEntityDamageByEntityEvent subtracts the weakness modifier and
subtracts the weakness again in EntityDamageByEntityListener.


Reproduction Steps.
Attack an entity with a diamond sword without weskness.
Base damage is 8.0 and final damage is 0.0 instead of the expected 4.0
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