-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Display Phantasm DPS in Total DPS #4661
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -219,6 +219,36 @@ function calcs.calcFullDPS(build, mode, override, specEnv) | |
| end | ||
| end | ||
|
|
||
| if activeSkill.phantasm then | ||
| if activeSkill.phantasm.minion.output.TotalDPS and activeSkill.phantasm.minion.output.TotalDPS > 0 then | ||
| t_insert(fullDPS.skills, { name = activeSkill.phantasm.name, dps = activeSkill.phantasm.minion.output.TotalDPS, count = activeSkill.phantasm.count, trigger = activeSkill.infoTrigger, skillPart = "Summoned by: "..activeSkill.phantasm.source }) | ||
| fullDPS.combinedDPS = fullDPS.combinedDPS + activeSkill.phantasm.minion.output.TotalDPS * activeSkill.phantasm.count | ||
| end | ||
| if activeSkill.phantasm.minion.output.BleedDPS and activeSkill.phantasm.minion.output.BleedDPS > fullDPS.bleedDPS then | ||
| fullDPS.bleedDPS = activeSkill.phantasm.minion.output.BleedDPS | ||
| bleedSource = activeSkill.activeEffect.grantedEffect.name | ||
| end | ||
| if activeSkill.phantasm.minion.output.IgniteDPS and activeSkill.phantasm.minion.output.IgniteDPS > fullDPS.igniteDPS then | ||
| fullDPS.igniteDPS = activeSkill.phantasm.minion.output.IgniteDPS | ||
| igniteSource = activeSkill.activeEffect.grantedEffect.name | ||
| end | ||
| if activeSkill.phantasm.minion.output.PoisonDPS and activeSkill.phantasm.minion.output.PoisonDPS > 0 then | ||
| fullDPS.poisonDPS = fullDPS.poisonDPS + activeSkill.phantasm.minion.output.PoisonDPS * (activeSkill.phantasm.minion.output.TotalPoisonStacks or 1) * activeSkillCount | ||
| end | ||
| if activeSkill.phantasm.minion.output.ImpaleDPS and activeSkill.phantasm.minion.output.ImpaleDPS > 0 then | ||
| fullDPS.impaleDPS = fullDPS.impaleDPS + activeSkill.phantasm.minion.output.ImpaleDPS * activeSkillCount | ||
|
Comment on lines
+236
to
+239
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here AI-assisted review disclosure: This finding was identified during a review using OpenAI Codex and confirmed with a focused reproduction. |
||
| end | ||
| if activeSkill.phantasm.minion.output.DecayDPS and activeSkill.phantasm.minion.output.DecayDPS > 0 then | ||
| fullDPS.decayDPS = fullDPS.decayDPS + activeSkill.phantasm.minion.output.DecayDPS | ||
| end | ||
| if activeSkill.phantasm.minion.output.TotalDot and activeSkill.phantasm.minion.output.TotalDot > 0 then | ||
| fullDPS.dotDPS = fullDPS.dotDPS + activeSkill.phantasm.minion.output.TotalDot | ||
| end | ||
| if activeSkill.phantasm.minion.output.CullMultiplier and activeSkill.phantasm.minion.output.CullMultiplier > 1 and activeSkill.phantasm.minion.output.CullMultiplier > fullDPS.cullingMulti then | ||
| fullDPS.cullingMulti = activeSkill.phantasm.minion.output.CullMultiplier | ||
| end | ||
| end | ||
|
|
||
| if activeSkill.mirage then | ||
| local mirageCount = (activeSkill.mirage.count or 1) * activeSkillCount | ||
| if activeSkill.mirage.output.TotalDPS and activeSkill.mirage.output.TotalDPS > 0 then | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With Summon Phantasm supporting a player skill,
addMinionList = { "SummonedPhantasm" }already makes the generic minion block above emit the selected Phantasm contribution. This added row then emits the same group again. The exact-HEAD fixture produced hit rows of7 x 2and7 x 5(plus the distinct source's3 x 2), yielding 55 instead of the deduplicated 41. Skipping the generic row only when it represents that same selectedSummonedPhantasmremoved the duplicate while preserving a distinct source minion.AI-assisted review disclosure: This finding was identified during a review using OpenAI Codex and confirmed with a focused reproduction.