Fix Verglas destroyed Ice Crystal damage gain#2390
Open
xiaoyaoyang wants to merge 4 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2389.
Description of the problem being solved:
Verglas exports its 1% Damage gained as extra Cold per 2,000 maximum Life of the destroyed Ice Crystal and its 6-second duration, but
SupportVerglasPlayerhad no stat mapping. As a result, linking or disabling Verglas produced identical per-skill and Full DPS values.This adds:
DamageGainAsColdmodifier for skills actually supported by Verglas.The modifier uses the existing
Multipliertag withdiv = 2000, which floors to complete 2,000-Life increments. It is intentionally not aGlobalEffect, since Verglas only applies to supported skills.The automatic value is shown as the input placeholder. Leaving the field empty uses that value; entering a positive value takes explicit precedence. The checkbox remains default-off because having an Ice Crystal skill does not imply that the player destroyed a crystal within the past 6 seconds.
Steps taken to verify a working solution:
TestSkills_spec.lua: 61/61 passed with 0 failures and 0 errors.TestFullDPSCache_spec.lua: 8/8 passed with 0 failures and 0 errors.git diff --checkpassed.Link to a build that showcases this PR:
https://pobb.in/CI4hChFipObn
Before screenshot:
Verglas enabled or disabled: 23,452,423.18 Full DPS.
After screenshot:
With "Ice Crystal destroyed (past 6s)?" enabled and the Life override left empty, Verglas uses the highest calculated Life from enabled Ice Crystal skills. With #2386 also applied, this build resolves 271,990.4 Life and 47,163,971.67 Full DPS.