Skip to content

Show the Leeching config options when the main skill leeches - #10640

Open
zubSero wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
zubSero:fix-leech-config-visibility
Open

zubSero wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
zubSero:fix-leech-config-visibility

Conversation

@zubSero

@zubSero zubSero commented Nov 30, 2026

Copy link
Copy Markdown

Fixes #10234.

Description of the problem being solved:

The "Are you Leeching?" config options only showed up when some mod in the build already used the Leeching condition. A build that leeches (here mana leech from Spirit of War) but has no "while Leeching" mod yet never saw them, so a "while Leeching" item like the crafted glove prefix showed no gain in the item comparison and there was no visible way to turn it on.

I now also mark the Leeching condition as used when the main skill has a non-instant life, energy shield or mana leech rate. That shows "Are you Leeching?" plus the matching "Are you Leeching Life/Energy Shield/Mana?" option. Builds without leech look the same as before.

Steps taken to verify a working solution:

  • Loaded the build from the issue: "Are you Leeching?" and "Are you Leeching Mana?" now show, Life and Energy Shield stay hidden.
  • Checked a blank build (nothing shows), "Leeched as Mana" and "Leeched as Life" custom mods, and gloves with "increased Damage while Leeching" (still shows as before).
  • Added a spec in TestConfigTab_spec.lua that fails on dev and passes with the change.

Not checked in the GUI, only headless.

Link to a build that showcases this PR:

Build code from the issue.

Before screenshot:

After screenshot:

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.

Leeching mana does not automatically trigger the "Are you leeching?" or "Are you leeching Mana?" configuration prompts.

1 participant