Skip to content

Refactor grantedEffectList ordering logic#2234

Open
okazakikun wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
okazakikun:dev
Open

Refactor grantedEffectList ordering logic#2234
okazakikun wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
okazakikun:dev

Conversation

@okazakikun

Copy link
Copy Markdown

Added fail-safe for grantedEffectDisplayOrder in cases where there are more effects granted than arguments in grantedEffectDisplayOrder to resolve "MetaMirageArcherPlayer" being discarded and thus spirit not being reserved for mirage archer and potentially other skills.

Fixes Mirage archer not reserving spirit as reported in issue 2151

Description of the problem being solved: In Gems.lua SkillGemMirageArcher grants 3 effects but only assigning an order to 2 of them "grantedEffectDisplayOrder = { 1, 2 },"

Steps taken to verify a working solution:

  • Verified Mirage archer was not reserving any spirit
  • Added failsafe for when grantedEffectDisplayOrder contains less entries than the number of effects granted and append any missing effects.
  • Applied fix, added mirage archer with ice shot, confirmed spirit was being reserved correctly and damage calculations were uneffected.

Link to a build that showcases this PR:

https://maxroll.gg/poe2/pob/bh7ilp0w

Before screenshot:

image

After screenshot:

image

Added failsafe for grantedEffectDisplayOrder in cases where there are more effects granted than arguments in grantedEffectDisplayOrder to resolve "MetaMirageArcherPlayer" being discarded and thus spirit not being reserved for mirage archer and potentially other skills.
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