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 ES Bypass not overriding sources of negative bypass #6965

Merged
merged 5 commits into from
Dec 11, 2023

Conversation

mortentc
Copy link
Contributor

@mortentc mortentc commented Dec 7, 2023

Fixes issue brougth up on reddit .

Description of the problem being solved:

all damage taken bypasses energy shield was being parsed as Base ES Bypass, which made it interact with sources of "does not bypass" when it shouldn't. Reusing the flag UnblockedDamageDoesBypassES from Emperor's Vigilance fixes the issue. Emperor's is however not getting parsed correctly at the moment, but that's another issue.

Steps taken to verify a working solution:

  • Allocate Divine Flesh, 30% of Chaos Damage taken does not bypass Energy Shield from ES Mastery, Shavronne's Wrappings and check that energy shield absorbs no form of damage.

Link to a build that showcases this PR:

eNrdXFtv47YSfl7_CsJAD7JoLrr4muO0cOLc2mTXtZNs97wUjETb6lKil6KSdYv-9w5JyZIdS5FiFzhoC2Rtcb4ZzpAznBkq6f34zafoifDQY8FJ3Tw06ogEDnO9YHpSv7-7OOjUf_yh1htiMfs4OY08Kkd-qL3rqc-IkidCAWfVkcB8SsRDwsr-DVjNcSBmhAW3-HfGL5l7Uv_AAlJHjzhwPZF8cygOww_YJyf1sQPgOsKhQwL3LH0eE84wx44g_EaK7UeC3TIXRgWPYNTHXjBmzhciLjmL5jCrOnryyLOmub4dfhzdZabkBdkpgUrvekOKF4SPBRYohB8n9T5YBk_JAPvwE7hhGgEr47BpWh3LSH7WjwrRpxEPxRtZjOeEuEuUeWjlEQ45OZ9MiCO8J3LGPXE2w4GTkZeHq0p7G1HhzalHeGZWzTzE1Qvm7VzaOyYwHQzHGRu1zKbdacQ_rWIgE68r8MkTs1MKFn2LGAm-ngaeIG9FD5kXsmAbFVewucsUUQpOWop2RELCn7Dw1uaVy5v5j17wNgPe4gCfsbDEOknKIeEQA0QlwJg4DMJGVRkVkTfehJSnrKRHDKg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D8pDib__bGFOwtb1OGj_ejG5m-6x6_RiEzvWoxksnkQU4JFaj_uAhDSEnjWxurAj4Ruc6jWZ2HVYqHGrp2gcHa7ZLmpXJ-lN43JaLKqjF-xvP1ebR2YI_WDuxRhccpg-JznYFdgcEVoT55sTW23VpvMsOmNWnuYE3MHfBoVDTIW0Ru0n8XPlqFh2rGVbL6xh1obbl_7MpTrrJAl5TJsm6LbbLZa1qVOVRW09xazSpr2_cjSsQOtqC9g7Bob616o7K5q-zjkUxgrLcGvsrKbeuizcrG2P5YsbbmsP0cGtsarrGr2G5Xmom7SOqEncet5q5Oa3M3GlnbLlHlDGrr0NLajebNrSdiV41Y5rbGNncQ23fmU83drENry_xl-2xk2wxqR65o7yo07IzRW0qLFGJXsEWKsrbakztaijf7yJY7aWeng7WDQLELHuauFNpZ1HrJSDeNxkSoS111uapeE2XBxJu-eOnTiULB_FvmhulLot-3DER0ly3MvpU0pNghM0ZdwmM0UPmL-C8ZJC-MtrO_U7eJPvuHCRJQsxiy-ntJKcwqIWodY7-CiX_3iVGqenNZxXKB_vJvJ8i_BiBv-MbqbU8WBWJM6CTzOu0rmibxI6Hvtovpl-9WLdUzzVxEKLv1Hyfql0pgguq3N1bf8-0dJfukd7T-l0H-BvN4lgk=

Before screenshot:

image

After screenshot:

image

Copy link
Member

@Wires77 Wires77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't really the right approach, since you're reusing a completely separate flag just because that's how it's coded. Changing those mods to OVERRIDE, adding Chaos, and changing the calculation code to care about OVERRIDE mods is the better solution.

@Wires77
Copy link
Member

Wires77 commented Dec 11, 2023

I went ahead and pushed a commit that fixes this using the original mods, but haven't extensively tested it yet. Ideally this gets a test in the testing suite, too.

@mortentc
Copy link
Contributor Author

That's fair! I tried making as few changes as possible, but understand why OVERRIDE is a better approach.

@LocalIdentity LocalIdentity merged commit ec6a17e into PathOfBuildingCommunity:dev Dec 11, 2023
@mortentc mortentc deleted the ESBypass branch December 11, 2023 12:42
deathbeam added a commit to deathbeam/PathOfBuilding-1 that referenced this pull request Dec 12, 2023
* upstream-dev: (31 commits)
  Release 2.37.0 (PathOfBuildingCommunity#7019)
  Add support for new Uniques + fix parsing for changed mod names (PathOfBuildingCommunity#7016)
  Fix ES from Tricksters Escape Artist when using Oath of the Maji (PathOfBuildingCommunity#7018)
  Fix Necromancer Offering charm not working (PathOfBuildingCommunity#7014)
  Update Query mods (PathOfBuildingCommunity#7011)
  Fix projectile count being 1 higher on all skills (PathOfBuildingCommunity#7006)
  Fix Herald of Agony quality not working (PathOfBuildingCommunity#7017)
  Fix Pyroclast Mine Aura Effect scaling Maximum Added Flat Damage (PathOfBuildingCommunity#7005)
  Fix Ascendant nodes counting towards allocated passive skill total (PathOfBuildingCommunity#7002)
  Change Manastorm config option to not overrun options box (PathOfBuildingCommunity#7008)
  Release 2.36.1
  Release 2.36.1 (PathOfBuildingCommunity#6996)
  Fix pathing and mastery nodes (PathOfBuildingCommunity#6989)
  Export from game files
  Fix Crash when opening Timeless Jewel search (PathOfBuildingCommunity#6995)
  Fix negative bypass being ignored (PathOfBuildingCommunity#6992)
  Release 2.36.0
  Release 2.36.0 (PathOfBuildingCommunity#6988)
  Add support for Tincture Implicits
  Fix ES Bypass not overriding sources of negative bypass (PathOfBuildingCommunity#6965)
  ...
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.

3 participants